Original: Nevertheless he prepared himself, driven by a great desire to learn, to take the entrance exam for grammar school (Gymnasium), which he passed with flying colors.
Simplified: He learned a lot of other languages.