Convert a Roman numeral to its integer value. The symbols are I=1, V=5, X=10, L=50, C=100, D=500, M=1000. A smaller symbol placed before a larger one is subtracted (e.g. IV = 4, IX = 9).
Input
A single line: a valid Roman numeral in upper case.
Output
Its integer value.