Input (grade 6): Stephen Grover Cleveland (March 18, 1837 June 24, 1908) was both the 22nd and 24th President of the United States.
Output (grade 9): Stephen Grover Cleveland (born March 18, 1837 died June 24, 1908) was the 22nd (1885 - 1889) and also the 24th (1893 - 1897) President of the United States.