while True:

    data = eval(input())

    if '?' in data:

        break

    print((eval(data.replace('/', '//'))))
while True:

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

    a = int(a)

    b = int(b)

    if op == "?":

        break

    elif op == "+":

        print((a + b))

    elif op == "-":

        print((a - b))

    elif op == "*":

        print((a * b))

    elif op == "/":

        print((a // b))



while True:
    data = eval(input())
    if "?" in data:
        break
    print((eval(data.replace("/", "//"))))

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

-    data = eval(input()) -    if "?" in data: +    a, op, b = input().split() +    a = int(a) +    b = int(b) +    if op == "?": -    print((eval(data.replace("/", "//")))) +    elif op == "+": +        print((a + b)) +    elif op == "-": +        print((a - b)) +    elif op == "*": +        print((a * b)) +    elif op == "/": +        print((a // b))