Roman numerals
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Count the sum of two natural numbers A
and B
, which have written in roman system of numeration. You must write the answer in roman system of numeration as well.
M = 1000
, D = 500
, C = 100
, L = 50
, X = 10
, V = 5
, I = 1
(all numbers is less 2000).
Input
In line wrote two number of roman system numeration, between which stand mark "+".
Output
One number, sum of numbers is roman system numeration too. Numbers in roman system numeration wrote big Latin letters.
Examples
Input #1
Answer #1
Submissions 15K
Acceptance rate 31%