Input (grade 13): She and her husband, Ferdinand II of Aragon, laid the foundation for the political unification of Spain under their grandson, Charles V, Holy Roman Emperor.
Output (grade 8): Her husband was Ferdinand II of Aragon and her grandson Carlos I of Spain (Charles V, Holy Roman Emperor).