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:
I find in the chaplain's journal, under date eighteen twenty four, various entries relative to this prisoner.

Ex Output:
I find in the chaplain's journal, under date 1824, various entries relative to this prisoner.


Ex Input:
Chapter two. The Assassination: Part one.

Ex Output:
Chapter 2. The Assassination: Part 1.


Ex Input:
At one time the Marshalsea was the receptacle of pirates, but none were committed to it after seventeen eighty nine.

Ex Output:

At one time the Marshalsea was the receptacle of pirates, but none were committed to it after 1789.