LearnPy Hub
← Arena
IntermediateRating 1100

Roman Numerals

Write n in Roman numerals (I, V, X, L, C, D, M, using subtractive forms like IV and XC).

Input

One integer n (1 ≤ n ≤ 3999).

Output

The numeral.

Sample 1

Input
1994
Output
MCMXCIV

Sample 2

Input
3999
Output
MMMCMXCIX
solution.py
Output appears here
Roman Numerals · Python Arena problem · LearnPy Hub