A,op,B=input().split()

A,B=list(map(int,[A,B]))

print((A+B if op=="+" else A-B))
print((eval(input())))
A, op, B = input().split()
A, B = list(map(int, [A, B]))
print((A + B if op == "+" else A - B))

print((eval(input())))

-A, op, B = input().split() -A, B = list(map(int, [A, B])) -print((A + B if op == "+" else A - B)) +print((eval(input())))