favorite We need a little bit of your help to keep things running, click on this banner to learn more

Equation for the 5-th class!

Equation for the 5-th class!

The equation for the fifth grader is a line of length 5 symbols. The second symbol in the line is either a sign '+' (plus) or '-' (minus), the forth symbol is a sign '=' (equals to). Amonng the first, third and fifth symbol exactly two are digits in the range from 0 to 9, and one is a letter x that is a variable.

Write a program to solve the given equation with respect to x.


One line with the given equation.


Print one number - the value of x.

Time limit 1 second
Memory limit 128 MiB
Input example #1
Output example #1
Input example #2
Output example #2
Source 2015 ACM Ukraine, First Stage, April 25