s = input() ans = -10 ** 10 if s[0].isdigit() and s[-1].isdigit(): ans = eval(s)