You will be given a definition of a task first, then some input of the task.
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.

at the top of the empire state building he saw the madison square garden so he decided to go there as well . it took him 676 steps to get down the building and 315 steps from the building to madison square garden . how many steps did he take to get to madison square ?
Output:
991