Task: Number Conversion
Input (English): On a certain day, the twenty seventh October, eighteen sixty two, the two were arrested simultaneously;
Output (English): On a certain day, the 27th October, 1862, the two were arrested simultaneously;