Test Case for Question #4 in DWITE 2008-2009 High School Round 1
Contest: DWITE 2008-2009 High School Round 1
Question: #4
Input File: DATA4.txt
Output File: OUT4.txt
Input
D
XIV
XLIV
MCDXLIV
MCMXCIX
Output
500
14
44
1444
1999