Input (grade 9): Hannibal reportedly entered Gaul with 40,000 foot soldiers and 12,000 horsemen.
Output (grade 6): Hannibal entered Gaul with 50,000 foot soldiers and 9,000 horsemen.