Roman numerals are represented by seven symbols: I, V, X, L, C, D, and M, with values of 1, 5, 10, 50, 100, 500, and 1000 respectively. They are usually ordered from largest to smallest. However, some numerals like IV and IX use subtraction. Given a Roman numeral, convert it to an integer.
Click Run to execute sample tests.