answers=[]

while True:

    iquation=[]

    iquation=input().split()

    iquation[0]=int(iquation[0])

    iquation[2]=int(iquation[2])

    if iquation[1]=='+':

        answers.append(iquation[0]+iquation[2])

    elif iquation[1]=='-':

        answers.append(iquation[0]-iquation[2])

    elif iquation[1]=='*':

        answers.append(iquation[0]*iquation[2])

    elif iquation[1]=='/':

        answers.append(int(iquation[0]/iquation[2]))

    elif iquation[1]=='?':

        break

    else:

        print('error')

for i in range(0,len(answers)):

    print((answers[i]))
while True:

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

    a=int(a)

    b=int(b)

    if op=="+":

        print((a+b))

    elif op=="-":

        print((a-b))

    elif op=="*":

        print((a*b))

    elif op=="/":

        print((a//b))

    elif op=="?":

        break
answers = []
while True:
    iquation = []
    iquation = input().split()
    iquation[0] = int(iquation[0])
    iquation[2] = int(iquation[2])
    if iquation[1] == "+":
        answers.append(iquation[0] + iquation[2])
    elif iquation[1] == "-":
        answers.append(iquation[0] - iquation[2])
    elif iquation[1] == "*":
        answers.append(iquation[0] * iquation[2])
    elif iquation[1] == "/":
        answers.append(int(iquation[0] / iquation[2]))
    elif iquation[1] == "?":
        break
    else:
        print("error")
for i in range(0, len(answers)):
    print((answers[i]))

while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    if op == "+":
        print((a + b))
    elif op == "-":
        print((a - b))
    elif op == "*":
        print((a * b))
    elif op == "/":
        print((a // b))
    elif op == "?":
        break

-answers = [] -    iquation = [] -    iquation = input().split() -    iquation[0] = int(iquation[0]) -    iquation[2] = int(iquation[2]) -    if iquation[1] == "+": -        answers.append(iquation[0] + iquation[2]) -    elif iquation[1] == "-": -        answers.append(iquation[0] - iquation[2]) -    elif iquation[1] == "*": -        answers.append(iquation[0] * iquation[2]) -    elif iquation[1] == "/": -        answers.append(int(iquation[0] / iquation[2])) -    elif iquation[1] == "?": +    a, op, b = input().split() +    a = int(a) +    b = int(b) +    if op == "+": +        print((a + b)) +    elif op == "-": +        print((a - b)) +    elif op == "*": +        print((a * b)) +    elif op == "/": +        print((a // b)) +    elif op == "?": -    else: -        print("error") -for i in range(0, len(answers)): -    print((answers[i]))