Question: who was the president when the national anthem was written
Answer: James Madison