You are given a math word problem and you are supposed to apply addition or subtraction mathematical operators on the numbers embedded in the text to answer the following question and then only report the final numerical answer.

Ex Input:
Frank and his friend were buying trick decks from the magic shop for 7 dollars each . How much did they spend if Frank bought 3 decks and his friend bought 2 decks ?

Ex Output:
35


Ex Input:
Ned was trying to expand his game collection . He bought 50 games from a friend and bought 27 more at a garage sale . If 74 of the games did n't work , how many good games did he end up with ?

Ex Output:
3


Ex Input:
Sara picked 35 pears and 27 apples from the orchard . She gave 28 pears to Dan . How many pears does Sara have ?

Ex Output:

7