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:
Part of the freight were four hundred rough diamonds valued at four thousand pounds.

Ex Output:
Part of the freight were four hundred rough diamonds valued at £4000.


Ex Input:
at first, and for some few years after seventeen eighty four, executions took place occasionally at a distance from Newgate.

Ex Output:
at first, and for some few years after 1784, executions took place occasionally at a distance from Newgate.


Ex Input:
At the time of the assassination PRS was a very small group, comprised of twelve specialists and three clerks.

Ex Output:

At the time of the assassination PRS was a very small group, comprised of 12 specialists and 3 clerks.