The task is to read a passage and convert numbers in their text forms into digit forms. The text numbers can be used to represent Quantity, Dates and Time, Addresses or Positions.

Example Input: Finally, the entry of January four to thirty one of nineteen sixty one, quote,
Example Output: Finally, the entry of January 4 to 31 of 1961, quote,

Example Input: At the execution of Governor Wall, in eighteen oh two, the furious hatred of the mob was plainly apparent in their appalling cries.
Example Output: At the execution of Governor Wall, in 1802, the furious hatred of the mob was plainly apparent in their appalling cries.

Example Input: The last execution at which he acted was that of Godwin, on the twenty fifth May, eighteen seventy four.
Example Output:
The last execution at which he acted was that of Godwin, on the 25th May, 1874.