import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) xopy = readline().rstrip().decode() x = 1 xx = '' flag = False if xopy[0] == '-': x *= -1 xopy = xopy[1:] yy = '' for xy in xopy: if flag: yy += xy else: if xy == '+': y = -1 flag = True elif xy == '-': y = 1 flag = True else: xx += xy print(x * int(xx) + y * int(yy))