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.

Ex Input:
A painter needed to paint 10 rooms in a building . Each room takes 8 hours to paint . If he already painted 8 rooms , how much longer will he take to paint the rest ?

Ex Output:
16


Ex Input:
John had 5 dollars . At the store he spent $ 2 on a new game . If he got another 26 dollars for his allowance , how much money does he have now ?

Ex Output:
29


Ex Input:
A chef needs to cook 9 potatoes . He has already cooked 7 . If each potato takes 3 minutes to cook , how long will it take him to cook the rest ?

Ex Output:

6