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.

[Q]: This block was completed in eighteen fifty nine, after which the hitherto unavoidable and long continued promiscuous association of prisoners
[A]: This block was completed in 1859, after which the hitherto unavoidable and long continued promiscuous association of prisoners


[Q]: and his unsuccessful attempt to go to Cuba in late September of nineteen sixty three.
[A]: and his unsuccessful attempt to go to Cuba in late September of 1963.


[Q]: The distance between the point on the seat and the door was twenty seven inches.
[A]:
The distance between the point on the seat and the door was 27 inches.