Input (grade 6): Queen Anne's War The North American part of the War of Spanish Succession (1702 - 1713)
Output (grade 4): Leopold I, Holy Roman Emperor (1658 - 1705).