Input (grade 10): Olav IV Haakonsson is elected King Oluf II of Denmark, following the death of his grandfather, Valdemar IV, in 1375.
Output (grade 7): Olaf III becomes King of Denmark after the death of his grandfather, Valdemar IV, in 1375.