Input (grade 12): Later the two 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).