while True:

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

    if op=='?': break

    elif op=='+': print(( int(a) +  int(b) ))

    elif op=='-': print(( int(a) -  int(b) ))

    elif op=='*': print(( int(a) *  int(b) ))

    elif op=='/': print(( int(a) // int(b) ))
while True:

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

    if op=='?': break

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

while True:
    a, op, b = input().split()
    if op == "?":
        break
    eval("print( int(int(a) {0} int(b)) )".format(op))

-    elif op == "+": -        print((int(a) + int(b))) -    elif op == "-": -        print((int(a) - int(b))) -    elif op == "*": -        print((int(a) * int(b))) -    elif op == "/": -        print((int(a) // int(b))) +    eval("print( int(int(a) {0} int(b)) )".format(op))