Input (grade 8): On 20\/21 September and 19 October 1647 glowing cannonballs set fire to the city, 365 houses got razed.
Output (grade 8): On 20th\/21st September and 19th October 1647 glowing cannonballs set fire to the city, 365 houses got razed.