Write a program which reads two integers a, b and an operator op, and then prints the value of a op b.  The operator op is '+', '-', '*' or '/' (sum, difference, product or quotient). The division should truncate any fractional part.
def scalc():
    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)
        else :
            break
    return 0

if __name__ == "__main__":
    ret = scalc()

while True:
    exp = input()
    if '?' in exp:
        break
    print(int(eval(exp)))
