Given the task definition and input, reply with output. Given a math word problem, answer the following question. You might need to apply addition or subtraction mathematical operators on the numbers embedded in the text to answer the question and then only report the final numerical answer.

after eating a hearty meal they went to see the buckingham palace . there rachel learned that 583 visitors came to the palace that day . if there were 246 visitors the previous day how many visited the palace within 2 days ?
829