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