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: In 1845 the Jail Committee brought forward a definite proposal to purchase ground in the immediate vicinity for the erection of a new jail.

Output: In eighteen forty five the Jail Committee brought forward a definite proposal to purchase ground in the immediate vicinity for the erection of a new jail.


Input: Consider Input: An imperfect attempt at classification was, however, made in 1812, and a yard was as far as possible set apart for the untried,

Output: An imperfect attempt at classification was, however, made in eighteen twelve, and a yard was as far as possible set apart for the untried,


Input: Consider Input: It was about 2250 B.C., when the great Hammurabi made it his capital, that it became the chief city of Babylonia.


Output: It was about twenty two fifty B.C., when the great Hammurabi made it his capital, that it became the chief city of Babylonia.