eolymp
bolt
Try our new interface for solving problems
Problems

Calculator

Calculator

The student Vasya has a younger brother, Peter, who went to the first grade and began learning arithmetic. For homework in the first grade, he was assigned numerous problems involving addition and subtraction. Peter asked Vasya to check his homework. Upon seeing the two-page scribbled tests, Vasya was horrified by the workload and decided to teach Peter to use a computer for self-checking. To accomplish this, Vasya needs to write a program that computes the answers to the required arithmetic problems. \InputFile One line contains numbers and symbols "+" and "-". The length of the line does not exceed $10000$ characters, and the values of all numbers are not greater than $10000$. \OutputFile Print one integer --- the result of the calculation.
Time limit 1 second
Memory limit 128 MiB
Input example #1
1+22-3+4-5+123
Output example #1
142