Input (grade 4): Charles VI, Holy Roman Emperor (1711 - 1740).
Output (grade 4): Nadir Shah, 1736-1747 (Began the Afsharid dynasty)