s = list((input().split()))



if s[1] =='+':

  ans = int(s[0]) + int(s[2])

elif s[1] =='-':

  ans = int(s[0]) - int(s[2])



print(ans)
s = input().split()

if s[1] =='+':

  print((int(s[0])+ int(s[2])))

else:

  print((int(s[0])- int(s[2])))
s = list((input().split()))
if s[1] == "+":
    ans = int(s[0]) + int(s[2])
elif s[1] == "-":
    ans = int(s[0]) - int(s[2])
print(ans)

s = input().split()
if s[1] == "+":
    print((int(s[0]) + int(s[2])))
else:
    print((int(s[0]) - int(s[2])))

-s = list((input().split())) +s = input().split() -    ans = int(s[0]) + int(s[2]) -elif s[1] == "-": -    ans = int(s[0]) - int(s[2]) -print(ans) +    print((int(s[0]) + int(s[2]))) +else: +    print((int(s[0]) - int(s[2])))