Input (grade 4): 1921 & ndash; The second Peace of Riga between Poland and Soviet Union.
Output (grade 5): 1837 - Grover Cleveland, President of the United States (d. 1908)