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:
A treasure hunter discovered a buried treasure chest filled with a total of 5155 gems . 45 of the gems were diamonds , and the rest were rubies . How many of the gems were rubies ?

Ex Output:
5110


Ex Input:
Abe 's family moved from the Bahamas to Japan , so they had convert their money into Japanese yen . Their checking account now has 6359 yen and their savings account now has 3485 yen . How many yen do they have ?

Ex Output:
9844


Ex Input:
Carol was playing a trivia game . In the first round she scored 17 points and in the second round she scored 6 points . In the last round she lost 16 points . How many points did she have at the end of the game ?

Ex Output:

7