IntermediateRating 1100
Read a Roman Numeral
Convert a valid Roman numeral (I, V, X, L, C, D, M) into a number.
Input
One numeral.
Output
One integer.
Sample 1
Input
III
Output
3
Sample 2
Input
LVIII
Output
58
Output appears hereOne numeral.
One integer.
III
3
LVIII
58
Output appears here