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:
at the town carnival billy rode the ferris wheel 7 times and the bumper cars 3 times . if each ride cost 5 tickets how many tickets did he use ?

Ex Output:
50


Ex Input:
isabel received 14 dollars for her birthday . later she found some toys that cost 2 dollars each . how many of the toys could she buy ?

Ex Output:
7


Ex Input:
adam could fit 9 action figures on each shelf in his room . his room has 3 shelves . how many action figures total could his shelves hold ?

Ex Output:

27