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:
who had borne the Queen's commission, first as cornet, and then lieutenant, in the tenth Hussars.

Ex Output:
who had borne the Queen's commission, first as cornet, and then lieutenant, in the 10th Hussars.


Ex Input:
and the return address was Post Office Box two nine one five, Dallas, Texas.

Ex Output:
and the return address was Post Office Box 2915, Dallas, Texas.


Ex Input:
Givens thought this was about eleven:fifty five a.m.

Ex Output:

Givens thought this was about 11:55 a.m.