Input (grade 8): Kimmei had six Empresses and 25 Imperial children (16 sons and 9 daughters).
Output (grade 7): Kimmei had six wives and 25 Imperial children (16 sons and 9 daughters).