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: In fourth grade there were 33 students at the start of the year . During the year 18 students left and 14 new students came to school . How many students were in fourth grade at the end ?
Example Output: 29

Example Input: John had 33 socks . If he threw away 19 old ones that did n't fit and bought 13 new ones , how many socks would he have ?
Example Output: 27

Example Input: A store had 120 coloring books in stock . They ended up putting them on sale and getting rid of 39 of them . The put the ones they still had onto shelves with 9 on each shelf . How many shelves did they use ?
Example Output:
9