Question: What year was it when the fourth U.S. president left office?
Answer: 1817