Task: Text Categorization
Input (English): This man's vice president, the only one elected by the Senate through the 12th Amendment, was the supposed killer of Tecumseh, Richard Mentor Johnson. This man was elected to the Senate over Nathan Sanford, and was the key organizer of the Bucktails political machine. He was accused of dining with gold spoons, and resigned following the Petticoat Affair. His presidency saw the Caroline Affair, the Aroostook War, and the slave rebellion aboard the Amistad. After his single term, he ran again in 1848 for the Free Soil Party, but was unpopular due to his handling of the Panic of 1837. For 10 points, name this successor to Andrew Jackson.
Output (English): History