The task is reading a paragraph containing numbers as digits. The digits can be used to represent Quantity, Dates and Time, Addresses or Positions. Convert the digits into their text equivalents. If a number has a prefix, postfix or punctuation preserve it in the text equivalent. 100000 is translated as hundred thousand, Roman numerals are also translated. If multiple numbers are present convert all instances.

Input: Consider Input: During his Presidency, Franklin D. Roosevelt made almost 400 journeys and traveled more than 350,000 miles.

Output: During his Presidency, Franklin D. Roosevelt made almost four hundred journeys and traveled more than three hundred fifty thousand miles.


Input: Consider Input: was eating lunch in his cab which was parked on Patton facing the southeast corner of 10th Street and Patton Avenue a few feet to the north.

Output: was eating lunch in his cab which was parked on Patton facing the southeast corner of tenth Street and Patton Avenue a few feet to the north.


Input: Consider Input: This was on the last day of 1829. In the following session Sir Robert Peel brought in a bill to consolidate the acts relating to forgery.


Output: This was on the last day of eighteen twenty nine. In the following session Sir Robert Peel brought in a bill to consolidate the acts relating to forgery.