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.
while True:
 a, op, b = input().split()
 a = int(a)
 b = int(b)

 if op == '?':
  break
 if op == '+':
  ans = a + b
 if op == '-':
  ans = a-b
 if op == '*':
  ans = a*b
 if op == '/':
  ans = a/b

 print(ans)

while True:
 a, op, b = input().split()
 a = int(a)
 b = int(b)

 if op == '?':
  break

 if op == '+':
  ans = a+b
 elif op == '-':
  ans = a-b
 elif op == '*':
  ans = a*b
 else:
  ans = a/b

 print('%d' %(ans))
