Feu un programa que llegeixi nombres romans
i que escrigui llurs valors.
Entrada
L’entrada consisteix en diversos nombres romans,
segons com s’explica a
l’exercici .
Cada nombre acaba en un punt.
Sortida
Per a cada nombre romà, cal escriure el seu valor.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
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
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