Q: In this task, you're given a passage, 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'.
Passage: Born in Salem, New Jersey, he attended private schools, and the Rensselaer Polytechnic Institute, before graduating from Union College, New York, in 1855. While at Union he became a member of Theta Delta Chi. After his collegiate career, he studied law, and was admitted to the bar in 1858, commencing the practice of law in Salem. During the Civil War Sinnickson served as Captain in the Union Army. He was elected as a Republican to the Forty-fourth and Forty-fifth United States Congresses, serving in office from March 4, 1875 to March 3, 1879. After his stint in Washington, he resumed the practice of law in Salem. He also served as a delegate to the 1880 Republican National Convention, and he was appointed judge of the Court of Common Pleas in 1896 and reappointed in 1901 and 1906.
 Link Information: March 4, 1877: Rutherford B. Hayes became President of the United States Question: Who was the president of the United States when Sinnickson served in Congress?
A:
Answer: Ulysses S. Grant