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.

Ex Input:
Thus in the years between May first, eighteen twenty seven, and thirtieth April, eighteen thirty one,

Ex Output:
Thus in the years between May 1st, 1827, and 30th April, 1831,


Ex Input:
Section ten. March nine, nineteen thirty seven. Part two.

Ex Output:
Section 10. March 9, 1937. Part 2.


Ex Input:
In eighteen twenty four Newgate had no glass in its windows, except in the infirmary and one ward of the chapel yard;

Ex Output:

In 1824 Newgate had no glass in its windows, except in the infirmary and one ward of the chapel yard;