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: 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 ?

Output: 15


Input: Consider Input: While playing a trivia game , Mike answered 3 questions correct in the first half and 5 questions correct in the second half . If each question was worth 3 points , what was his final score ?

Output: 24


Input: Consider Input: The school cafeteria ordered 37 red apples and 45 green apples for students lunches . But , if only 51 students wanted fruit , how many extra did the cafeteria end up with ?


Output: 31


