I thought this would be more difficult, but apparently there is a special format for writing roman numerals that makes 999 be written as CMXCIX, (1000-100)+(100-10)+(10-1) not IM, (1000-1) which makes coding much easier