Roman numeral rules
The same letter can repeat up to three times in a row (III = 3). A smaller letter placed before a larger one is subtracted (IV = 4, IX = 9, XL = 40, XC = 90, CD = 400, CM = 900); placed after it, it is added (VI = 6).
Only I, X and C can be used as subtractors, and only before the next two larger letters. That is why IC is not a valid way to write 99; the correct form is XCIX.