Who was the President of the United States during the War of 1812?

Who was the President of the United States during the War of 1812?