Edited sentence: Aside from his mother, Rákóczi's key educators were György Kőrössy, castellan to the family, and János Badinyi.Despite further difficulties, Ilona Zrínyi was able to raise her children, while the Emperor retained legal guardianship.He had a brother, George, who died as a baby before Francis was born, and a sister, Julianna, who was four years older than Francis.He was the richest landlord in the Kingdom of Hungary and was the count (comes perpetuus) of the Comitatus Sarossiensis (in Hungarian Sáros) from 1694 on.He was the third of three children born to Francis I Rákóczi, elected ruling prince of Transylvania, and Zrínyi Ilona (Jelena Zrinski), who was the daughter of Petar Zrinski (Zrínyi Péter in Hungarian), Ban of Croatia, and niece of the poet Nikola Zrinski (Miklós Zrínyi in Hungarian).His father died when Francis II was four months old.His grandfather and great-grandfather, both called George, were Princes of Transylvania.Rákóczi retained strong affection for this place throughout his life.The family lived in the castle of Munkács (today Mukacheve, in Ukraine), Sárospatak and Regéc until 1680, when Francis’s paternal grandmother, Sophia Báthory, died.Then, they moved permanently into the castle of Munkács.Upon Francis I's death, Ilona Zrínyi requested guardianship of her children; however, the advisors of Emperor Leopold I insisted that he retain guardianship of both Francis and his sister, especially as Francis I had willed this before death