Write a program that reads Roman numbers and prints their values.
Input consists of several Roman numbers, as explained in the exercise problem://problemsjutge.org:problems/p1/jpetit/numeros-romans-1.pbm. Every number ends in a period.
For each Roman number, print its value.
Input
I. IV. X. XL. XLI. XVI. MMDCCVIII. CMXCIX. MMMV.
Output
I = 1 IV = 4 X = 10 XL = 40 XLI = 41 XVI = 16 MMDCCVIII = 2708 CMXCIX = 999 MMMV = 3005