You will be given a definition of a task first, then an example. Follow the example to solve a new instance 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.

robin bought 11 sodas for her and her friends . if they only drank 3 of them how many extras did she have ?
Solution: 8
Why? Extra sodas is total - drank = 11-3 = 8

New input: there 's only a week left before christmas . john went out to buy gifts for his family . having $ 999 for his budget he went to a sports store and bought his brother a new pair of shoes for $ 165 . how much money does he have left ?
Solution:
834