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: which he did for 4 months in the fall of 1948.

Output: which he did for four months in the fall of nineteen forty eight.


Input: Consider Input: The time was fixed at 1 p.m., as an approximation, since it was impossible to determine the precise moment when life left the President.

Output: The time was fixed at one p.m., as an approximation, since it was impossible to determine the precise moment when life left the President.


Input: Consider Input: Griffiths afterwards admitted that he had been employed in defrauding the bank since 1846,


Output: Griffiths afterwards admitted that he had been employed in defrauding the bank since eighteen forty six,