Input (grade 5): John Tyler, Jr. (March 29, 1790 January 18, 1862) was the tenth President of the United States (1841 - 1845) and the first ever to obtain that office via succession.
Output (grade 2): He lived from March 29, 1790 to January 18, 1862.