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: Edward was trying to expand his game collection . He bought 41 games from a friend and bought 14 more at a garage sale . If 31 of the games did n't work , how many good games did he end up with ?
Example Output: 24

Example Input: A restaurant served 4 pies during lunch and 9 during dinner today . The restaurant served 7 pies and 2 pizzas yesterday . How many pies were served in total ?
Example Output: 20

Example Input: For a birthday party Cody bought 4 regular sodas and 44 diet sodas . If his fridge would only hold 6 on each shelf , how many shelves would he fill up ?
Example Output:
8