a, op, b = input().split()

a,b = int(a), int(b)

print((a+b if op == '+' else a-b))
s = eval(input())

print((eval(s)))
a, op, b = input().split()
a, b = int(a), int(b)
print((a + b if op == "+" else a - b))

s = eval(input())
print((eval(s)))

-a, op, b = input().split() -a, b = int(a), int(b) -print((a + b if op == "+" else a - b)) +s = eval(input()) +print((eval(s)))