Input (grade 8): Mary was betrothed in December 1507 to Charles of Castile, later Holy Roman Emperor.
Output (grade 6): She was first betrothed to Charles of Castile, later the Holy Roman Emperor.