Detailed Instructions: In this task, you're given a statement, further information available on a particular linked term from the statement, and a question. Your job is to generate the answer to the question by using the information provided. If there is no clear answer obtainable, output 'none'.
Problem:Context: he following year, President Ulysses S. Grant closed the federal government for the holiday, and most businesses followed, which greatly contributed to attendance at the cemetery. Link Information: Ulysses S. Grant (born Hiram Ulysses Grant; April 27, 1822 July 23, 1885) was an American soldier and politician who served as the 18th president of the United States from 1869 to 1877. Question: What years did Ulysses S. Grant serve as president?
Solution:
Answer: 1869 to 1877