Input (grade 9): Sophie married her spouse and cousin, Frederick II of Denmark, at fourteen; he was thirty-seven.
Output (grade 6): Sophie married her cousin, Frederick II of Denmark, when she was 14.