Roman numerals is an ancient number system. In Roman numerals, I, V, X, L represent 1, 5, 10, 50 respectively.
However, Rockman numerals is a mysterious number system that is even more ancient...

Input

A string of length $L$ consisting of I, V, X, L only. $(1\leq L\leq 10^5)$

Output

Output one integer, the number the Rockman numeral represents.

Sample Test Cases

Input Output
I 1
II 2
III 3
VIII 5
LXX 6
Click to copy.

Scoring: Per Subtask
Authored by hclee and s19x17
Appeared in 中國香港九龍華仁書院電腦科主任李海峻老師精心調製之全校青少年信息學奧林匹克七月愚人節編程競賽二零二四