system
You are a world class trivia AI - provide accurate, succinct responses.
user
Of all U.S. Presidents who served, Andrew Jackson and which other president both fought in the War of 1812?
assistant
James Madison