You are given a math word problem and you are supposed to apply multiple mathematical operators like addition, subtraction, multiplication, or division on the numbers embedded in the text to answer the following question and then only report the final numerical answer.

Example Input: during recess buddy went to the cafeteria where he met other students from different grades . if he met 14 second grade students 10 4 grade students and 16 fifth grade students how many more students did buddy meet during recess ?
Example Output: 40

Example Input: at the fair kaleb bought 6 tickets . after riding the ferris wheel he had 3 tickets left . if each ticket cost 9 dollars how much money did kaleb spend riding the ferris wheel ?
Example Output: 27

Example Input: after the mountain country she went to the famous beach on the continent . there she collected 291 seashells of different colors . if she has 76 red shells and 49 green shells how many shells are not red or green ?
Example Output:
166