while True:

    line = input().split()

    if line[1] == '+':

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

    if line[1] == '-':

        print((int(line[0]) - int(line[2])))

    if line[1] == '*':

            print((int(line[0]) * int(line[2])))

    if line[1] == '/':

        print((int(line[0]) // int(line[2])))

    if line[1] == '?':

        break
while True:

    line = eval(input())

    if '?' in line:

        break

    print((eval(line.replace('/', '//'))))
while True:
    line = input().split()
    if line[1] == "+":
        print((int(line[0]) + int(line[2])))
    if line[1] == "-":
        print((int(line[0]) - int(line[2])))
    if line[1] == "*":
        print((int(line[0]) * int(line[2])))
    if line[1] == "/":
        print((int(line[0]) // int(line[2])))
    if line[1] == "?":
        break

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

-    line = input().split() -    if line[1] == "+": -        print((int(line[0]) + int(line[2]))) -    if line[1] == "-": -        print((int(line[0]) - int(line[2]))) -    if line[1] == "*": -        print((int(line[0]) * int(line[2]))) -    if line[1] == "/": -        print((int(line[0]) // int(line[2]))) -    if line[1] == "?": +    line = eval(input()) +    if "?" in line: +    print((eval(line.replace("/", "//"))))