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: Previous to that date there had been 700 or 800 frequently, and once, in Mr. Akerman's time, one thousand.

Output: Previous to that date there had been seven hundred or eight hundred frequently, and once, in Mr. Akerman's time, one thousand.


Input: Consider Input: But the first Bible actually dated (which also was printed at Maintz by Peter Schoeffer in the year 1462)

Output: But the first Bible actually dated (which also was printed at Maintz by Peter Schoeffer in the year fourteen sixty two)


Input: Consider Input: Among the first of the modern travelers to describe the ruins of Babylon was Anthony Shirley, an Englishman who visited Mesopotamia in 1599.


Output: Among the first of the modern travelers to describe the ruins of Babylon was Anthony Shirley, an Englishman who visited Mesopotamia in fifteen ninety nine.