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: These indeed were out to the value of three hundred sixty seven thousand, eight hundred pounds.

Output: These indeed were out to the value of £367,800.


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.


Input: Consider Input: was perpetrated in eighteen fifty two. The case was accompanied with the most shocking brutality.


Output: was perpetrated in 1852. The case was accompanied with the most shocking brutality.