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:
but in the twenty seventh George the second the right of presentation was bought by the Crown for ten thousand, five hundred pounds.

Ex Output:
but in the 27th George II the right of presentation was bought by the Crown for £10,500.


Ex Input:
or the keeper made them a special grant of six pence per diem out of the common stock;

Ex Output:
or the keeper made them a special grant of 6 pence per diem out of the common stock;


Ex Input:
In September, the White House decided to permit further visits by the President and extended the trip to run from the afternoon of November twenty one

Ex Output:

In September, the White House decided to permit further visits by the President and extended the trip to run from the afternoon of November 21