Input (grade 4): Joseph I, Holy Roman Emperor (1705 1711).
Output (grade 4): Leopold I, Holy Roman Emperor (1658 - 1705).