<human>:  Who was the president of the United States at the time of the War of 1812?
<bot>: The War of 1812 was fought between the United States and Great Britain. The United States was a young country at the time, and the president was James Madison.