Roman Numeral Converter

Convert any number from 1 to 3999 into Roman numerals, or decode a Roman numeral back into a number.

Example input

1994

Example output

MCMXCIV