#K92607. Integer to Roman Numeral Conversion

    ID: 38235 Type: Default 1000ms 256MiB

Integer to Roman Numeral Conversion

Integer to Roman Numeral Conversion

Your task is to convert a given integer (n) into its Roman numeral representation. The integer (n) will satisfy (1 \leq n \leq 3999). The Roman numeral system uses symbols such as (I), (V), (X), (L), (C), (D), and (M), and the numeral is constructed using both additive and subtractive rules (e.g., (4) is represented as (IV) instead of (IIII)).

You should read the integer from standard input and print its corresponding Roman numeral on a single line to standard output.

inputFormat

Input consists of a single integer (n) (where (1 \leq n \leq 3999)) provided via standard input.

outputFormat

Output the Roman numeral representation of the integer (n) as a single line on standard output.## sample

1
I