Input (grade 2): It was the first decade of the 18th century.
Output (grade 4): King Frederick IV of Denmark (1699 - 1730).