Add Smallest Number and Correct Encoding of AM