Input (grade 13): Interested in astronomy and trying to develop a calendar, he investigated Diophantine equations.
Output (grade 11): He tried to develop a calendar and for this he investigated Diophantine equations.