<human>:  I have a question about the Irish famine. Who was the president of the United States in 1847?
<bot>: That would be James Polk. He was the first president to serve two non-consecutive terms. He was also the first president to be born in a log cabin.