Yo`nalishlar
Hozirda online

Statistika

Masalalar soni: 909

Foydalanuvchilar soni: 8820

Jo'natishlar soni: 714406

Muhokama yozuvlari: 4541

Yangiliklar soni: 97

Yangiliklar izohlari: 1174


So'ngi izohlar

462. Roman numerals
Vaqt limiti: 1 sekund
Xotira limiti: 64 MB

Count the sum of two natural numbers А and В, which have written in roman system of numeration. The answer you must write too in roman system of numeration.

   М = 1000, D = 500, С = 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.

Input

Output

1

VII+II
IX

 

 

Tayyorladi: Bahrom Sultonov
Mening urinishlarim(0) Muhokama (0) Jo'natish Eng yaxshi yechimlar Barcha muvaffaqiyatli urinishlar(83) Barcha urinishlar(148)