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: the only revolver made by Smith & Wesson with this serial number. When first manufactured, it had a 5 inch barrel.

Output: the only revolver made by Smith and Wesson with this serial number. When first manufactured, it had a five inch barrel.


Input: Consider Input: The whole question assumed sufficient importance to become a part of the Government program when Lord Beaconsfield took office in 1874.

Output: The whole question assumed sufficient importance to become a part of the Government program when Lord Beaconsfield took office in eighteen seventy four.


Input: Consider Input: The prisoners were crowded together in the jail, contrary to the requirements of the 4 George IV.


Output: The prisoners were crowded together in the jail, contrary to the requirements of the four George the fourth