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.

Input: Consider Input: in the three years between eighteen thirteen and eighteen sixteen,

Output: in the three years between 1813 and 1816,

Input: Consider Input: On November thirty, nineteen sixty three, the FBI requested the bullet for ballistics examination;

Output: On November 30, 1963, the FBI requested the bullet for ballistics examination;

Input: Consider Input: then Home Secretary, and the prison, which contained five hundred and twenty cells, was occupied on the twenty first December, eighteen forty two.
Output: then Home Secretary, and the prison, which contained five hundred and twenty cells, was occupied on the 21st December, 1842.