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: on the opening of Whitecross prison for debtors in 1815.

Output: on the opening of Whitecross prison for debtors in eighteen fifteen.


Input: Consider Input: prior to November 22, 1963, were inadequate.

Output: prior to November twenty two, nineteen sixty three, were inadequate.


Input: Consider Input: in the summer of 1948.


Output: in the summer of nineteen forty eight.