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 2nd October they sighted land, ten miles distant;

Output: On the second October they sighted land, ten miles distant;


Input: Consider Input: Chapter 7. Lee Harvey Oswald: Background and Possible Motives, Part 2.

Output: Chapter seven. Lee Harvey Oswald: Background and Possible Motives, Part two.


Input: Consider Input: which left London for Singapore on the 28th July, 1863, with a cargo of wine and other goods.


Output: which left London for Singapore on the twenty eighth July, eighteen sixty three, with a cargo of wine and other goods.