Task: Text Categorization
Input (English): This man's only Supreme Court appointment was that of his Naval Secretary, Smith Thompson. While this man was president, the Choctaw chief Pushmataha ceded territory to the U. S. in the Treaties of Doak's Stand and Washington City. Another treaty during his presidency established the Sabine and Red Rivers as borders with New Spain and ceded Florida to the U. S. That treaty, the Adams-Onis Treaty, was negotiated by this man's Secretary of State, John Quincy Adams. Upon the collapse of the Federalists, this man ran for reelection unopposed. For 10 points, name this fifth U. S. President, whose namesake doctrine told Europe to stay out of American affairs.
Output (English): History