Task: Text Categorization
Input (English): During this man's presidency, a group of Canadian rebels declared a republic on Navy Island. That was part of a conflict during his presidency that took place along the Maine-New Brunswick border. This man dealt with the Caroline Affair while in office. This President was originally a leading member of the Albany Regency. The Aroostook War occurred during his presidency. This man's predecessor's feud with the Second Bank of the United States led to the Panic of 1837. For 10 points, name this President who succeeded Andrew Jackson.
Output (English): History