Input (grade 4): There were 7,707 pleasure grounds and an equal number of lotus ponds.
Output (grade 9): There were seven thousand seven hundred and seven pleasure grounds and an equal number of lotus ponds.