What year was it when the fourth U.S. president left office?
1817
1817
1809
1817
1805
1809
1817
1789
1805
1809
1815
1817
1789
1805
1809
1815
1817
1789
1805
1809
1825
1813
1815
1817
1789
1801
1805
1809
1825
1813
1815
1817
1816
1789
1801
1805
1809
1825
1813
1815
1817
1816
1796
1789
1801
1805
1809
1825
1813
1815
1817
1816
1796
1789
1801
1805
1809
1825
1813
1815
1817
1816
1796
1789
1801
1805
1809
1825
1813
1815
1817
1816
1796
1789
1801
1805
1809
1825
1813
1815
1817
1816
1796
1789
1801
1805
1809
1825
1813
1815
1817
1820
1816
1789
1801
1805
1809
1825
1797
1813
1815
1817
1816
1796
1789
1801
1805
1809
1825
1813
1815
1817
1820
1797
1789
1801
1805
1809
1825
1816
1796
1813
1815
1817
1804
1789
1801
1805
1820
1809
1825
1813
1815
1817
1814
1796
1797
1789
1805
1809
1825
1816
1817.
1813
1804
1815
1817
1820
1800
1789
1801
1805
1789.
1809
1814
1825
1796
1797
1815
1817
1800
1816
1837
1813
1804
1841
1789
1805
1809
1800
1815
1817
1801
1820
1814
1825
1805.
1797
1789
1805
1800
1809
1816
1815.
1796
1837
1813
1841
1815
1813.
1817.
1800
1804
1796.
1789
1801
1805
1793
1820
1790
1789.