while True:

    a = eval(input())

    if '?' in a:

        break

    print((eval(a.replace("/", "//"))))
while True:

    a = eval(input())

    if '?' in a:

        break

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

while True:
    a = eval(input())
    if "?" in a:
        break
    print(("%d" % eval(a)))

-    print((eval(a.replace("/", "//")))) +    print(("%d" % eval(a)))