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: were first made use of about eighteen twenty seven. That the need for prison reform was imperative may be gathered from the few out of many instances I have adduced,

Output: were first made use of about 1827. That the need for prison reform was imperative may be gathered from the few out of many instances I have adduced,


Input: Consider Input: Although in the phone conversation she described the man as, quote, short, end quote, on November twenty second,

Output: Although in the phone conversation she described the man as, quote, short, end quote, on November 22nd,


Input: Consider Input: with his recently acquired rifle and pistol, a copy of the March twenty four, nineteen sixty three, issue of the Worker,


Output: with his recently acquired rifle and pistol, a copy of the March 24, 1963, issue of the Worker,