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:
There were 8 friends playing a video game online when 3 players quit . If each player left had 3 lives , how many lives did they have total ?

Ex Output:
15


Ex Input:
Mary loves eating fruits . Mary paid $ 11.08 for berries , $ 14.33 for apples , and $ 9.31 for peaches . In total , how much money did she spend ?

Ex Output:
34.72


Ex Input:
Frank made 5 dollars mowing lawns and 58 dollars weed eating . If he only spent 7 dollar a week , how long would the money last him ?

Ex Output:

9