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.

Input: Consider Input: Faye had 46 math problems and 9 science problems for homework . If she finished 40 of the problems at school , how many problems did she have to do for homework ?

Output: 15

Input: Consider Input: A pet store had 41 siamese cats and 28 house cats . During a sale they sold 15 cats . How many cats do they have left ?

Output: 54

Input: Consider Input: Grace has 16 jellybeans in her pocket . She has 8 red ones , 4 green ones , and 4 blue ones . What is the minimum number of jellybeans she must take out of her pocket to ensure that she has one of each color ?
Output: 13