Input (grade 12): He attends Hogwarts School of Witchcraft and Wizardry to learn magic under the guidance of the kind headmaster Albus Dumbledore.
Output (grade 4): He goes to Hogwarts School of Witchcraft and Wizardry to learn magic.