Problem:
Simple Calculator 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. Input The input consists of multiple datasets. Each dataset is given in the following format.  a  op  b  The input ends with a dataset where op = '?'. Your program should not process for this dataset. Output For each dataset, print the value in a line. Constraints  0 ≤ a , b ≤ 20000  No divisions by zero are given.  Sample Input 1 1 + 2
56 - 18
13 * 2
100 / 10
27 + 81
0 ? 0 Sample Output 1 3
38
26
10
108

Solution (Python):
for i in range (1000000000000000000000000):
    a,op,b = input().split()
    a = int(a)
    b = int(b)
    if op == "+":
        print(a+b)
    elif op == "-":
        print(a-b)
    elif op == "*":
        print(a*b)
    elif op == "/":
        print(a//b)
    elif op == "?":
        break

Solution (Python):
while(1):
    hoge = input().split()
    a,op,b = int(hoge[0]),hoge[1],int(hoge[2])
    if op == '?':
        break
    if op == "+":
        print(a+b)
    elif op == "-":
        print(a-b)
    elif op == "/":
        print(a//b)
    else:
        print(a*b)

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

Solution (Python):
while True:
    s = str(input()).split()
    s[0] = int(s[0])
    s[2] = int(s[2])
    if s[1] == '?':
        break
    if s[1] == '+':
        print(s[0] + s[2])
    elif s[1] == '-':
        print(s[0] - s[2])
    elif s[1] == '*':
        print(s[0] * s[2])
    elif s[1] == '/':
        print(s[0] // s[2])

Solution (Python):
A = []
a, op, b = map(str, input().split())
while op != '?':
    A.append([int(a),op,int(b)])
    a, op, b = map(str, input().split())
for i in range(len(A)):
    if A[i][1] == '+':
        print(A[i][0] + A[i][2])
    elif A[i][1] == '-':
        print(A[i][0] - A[i][2])
    elif A[i][1] == '*':
        print(A[i][0] * A[i][2])
    elif A[i][1] == '/':
        print(int(A[i][0] / A[i][2]))

Solution (Python):
ans = []
while True:
    string = input()
    if string.count("?") == 1:
        break
    ans.append(string)
for i in ans:
    print(int(eval(i)))

Solution (Python):
n = 0
while True:
    a = input().split()
    if a[1] == "?":
        break
    else:
        if a[1] == "+":
            n = int(a[0]) + int(a[2])
        elif a[1] == "-":
            n = int(a[0]) - int(a[2])
        elif a[1] == "*":
            n = int(a[0]) * int(a[2])
        elif a[1] == "/":
            n = int(a[0]) / int(a[2])
    print(int(n))

Solution (Python):
import sys
input = sys.stdin.readline

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

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

Solution (Python):
import math
a, op, b = map(str, input().split())
while op != "?":
    print(math.floor(eval(a+op+b)))
    a, op, b = map(str, input().split())

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

Solution (Python):
a=[]
while(True):
    x = input()
    if(x.find("?") != -1):
        break
    a.append(x)
for i in a:
    print(int(eval(i)))

Solution (Python):

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

Solution (Python):
while 1:
    li=input().split()
    a=int(li[0])
    op=li[1]
    b=int(li[2])
    if op=='?':
        break
    elif op=='+':
        print(a+b)
    elif op=='-':
        print(a-b)
    elif op=='*':
        print(a*b)
    elif op=='/':
        print(int(a/b))

Solution (Python):
while True:
    lis = input().split()
    a=int(lis[0])
    b=int(lis[2])
    if lis[1]=='?':
        break
    elif lis[1]=='+':
        print(a+b)
    elif lis[1]=='-':
        print(a-b)
    elif lis[1]=='*':
        print(a*b)
    else:
        print(a//b)

Solution (Python):
while True:
    a, op, b = input().split()
    if op == '?':
        break
    
    if op == '/':
        op = '//'
        
    print(eval(f'{a}{op}{b}'))

Solution (Python):

while True:
    num_list = input().split()
    a = int(num_list[0])
    b = int(num_list[2])
    op = num_list[1]
    if op == "?":
        break
    if op == "+":
        c = a+b
    if op == "-":
        c = a-b
    if op == "*":
        c = a*b
    if op == "/":
        c = a//b
    print(c)

Solution (Python):
while 1:
    a,op,b=input().split()
    if op=='?':
        break
    a=int(a)
    b=int(b)
    if op=='+':
        print(a+b)
    elif op=='-':
        print(a-b)
    elif op=='*':
        print(a*b)
    elif op=='/':
        print(int(a/b))

Solution (Python):
def cul(A,OP,B):
    A = int(A)
    B = int(B)
    if OP == '+':
        return A+B
    elif OP == '-':
        return A-B
    elif OP == '*':
        return A*B
    else:
        return A//B
a,op,b = input().split()
while op != '?':
    print(cul(a,op,b))
    a,op,b = input().split()

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

Solution (Python):
while True:
    expr = input()
    if "?" in expr:
        break
    else:
        print(int(eval(expr)))

Solution (Python):
answer = []

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

    result = 0
    if op == "?":
        break
    elif op == "+":
        result = a + b
    elif op == "-":
        result = a - b
    elif op == "*":
        result = a * b
    elif op == "/":
        result = int(a / b)

    answer.append(result)

[print(answer[i]) for i in range(len(answer))]

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

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

Solution (Python):
while True:
    I = input().split()
    a = int(I[0])
    op = I[1]
    b = int(I[2])
    if op == '?':
        break
    elif op == '+':
        print("%s"%(a + b))
    elif op == '-':
        print("%s"%(a - b))
    elif op == '/':
        print("%s"%(a // b))
    else:
        print("%s"%(a * b))

Solution (Python):
a,o,b=input().split()
a=int(a)
b=int(b)
while o!='?':
    if o=='+':
        print(a+b)
    elif o=='-':
        print(a-b)
    elif o=='*':
        print(a*b)
    elif o=='/':
        print(int(a/b))
    a,o,b=input().split()
    a=int(a)
    b=int(b)

Solution (Python):
while True:
    a,o,b = [i for i in input().split()]
    
    if o == '?':
        break
    elif o == '+':
        print(int(a)+int(b))
    elif o == '-':
        print(int(a)-int(b))
    elif o == '*':
        print(int(a)*int(b))
    else:
        print(int(a)//int(b))

Solution (Python):
while True:
    a,op,b = input().split(' ')
    if op == '?': break
    if op == '/': op = '//'
    print(eval(a + op + b))

Solution (Python):
for _ in range(20000):
    a, op, b = input().split()
    if op == '+':
        print(str(int(a) + int(b)))
    elif op == '-':
        print(str(int(a) - int(b)))
    elif op == '*':
        print(str(int(a) * int(b)))
    elif op == '/':
        print(str(int(a) // int(b)))
    elif op == '?':
        break

Solution (Python):
result = list()

while True:
    data = list(input().split())
    if data[1] == "+":
        result.append(int(data[0]) + int(data[2]))
    elif data[1] == "-":
        result.append(int(data[0]) - int(data[2]))
    elif data[1] == "*":
        result.append(int(data[0]) * int(data[2]))
    elif data[1] == "/":
        result.append(int(data[0]) // int(data[2]))
    elif data[1] == "?":
        break
    else:
        continue

for i in range(len(result)):
    print(result[i])

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

Solution (Python):
for i in range(10000):
    s = input()
    if "?" in s:
        break
    print(int(eval(s)))

Solution (Python):
while True:
    a,op,b=input().split()
    a,b=int(a),int(b)
    if op=='?':
        exit()
    if op=='+':
        print(a+b)
    if op=='-':
        print(a-b)
    if op=='*':
        print(a*b)
    if op=='/':
        print(a//b)

Solution (Python):
while True:
    d = input().split()
    a,b =int(d[0]),int(d[2])
    if d[1] == "?":
        break
    if d[1] == "+":
        print(a+b)
    if d[1] == "-":
        print(a-b)
    if d[1] == "*":
        print(a*b)
    if d[1] == "/":
        print(a//b)

Solution (Python):
while True:
    l = input().split()
    a  = int(l[0])
    op = l[1]
    b  = int(l[2])
    if op == '?':
        break

    if   op == '+':
        print(a + b)
    elif op == '-':
        print(a - b)
    elif op == '*':
        print(a * b)
    elif op == '/':
        print(a // b)
    else:
        print('Undefined')

Solution (Python):
import math
while(1):
    a,op,b=input().split()
    if op=='?':
        break;
    else:
        print(math.floor(eval(a+op+b)))

Solution (Python):
import sys
import itertools
import math



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

while 1:
    a, op, b = readline().decode('utf8').split()
    a=int(a)
    b=int(b)
    if op=='?':
        break
    else:
        if op=='+':
            print(a+b)
        elif op=='-':
            print(a-b)
        elif op=='*':
            print(a*b)
        else:
            print(a//b)

Solution (Python):
while 1:
 a=input()
 if'?'in a:break
 print(int(eval(a)))

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

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

    if op=='+':
        print(a+b)
    elif op == '-':
        print(a-b)
    elif op == '*':
        print(a*b)
    elif op == '/':
        print(int(a/b))
    elif op == '?':
        break

Solution (Python):
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)
    else :
        print(a * b)

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

Solution (Python):
import math
while(True):
    a,op,b=input().split()
    if op=='?':
        break
    else:
        print(math.floor(eval("%d%s%d"%(int(a),op,int(b)))))

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

Solution (Python):
for _ in range(20000):
    a,op,b = input().split()
    a = int(a)
    b = int(b)
    if op == '+':
        print(a+b)
    elif op == '-':
        print(a-b)
    elif op == '*':
        print(a*b)
    elif op == '/':
        print(a//b)
    else:
        break

Solution (Python):
li = []
while True:
    li.append(input().split())
    if li[-1][1] == '?':
        break
for s in li:
    if s[1] == '+':
        print(int(s[0]) + int(s[2]))
    elif s[1] == '-':
        print(int(s[0]) - int(s[2]))
    elif s[1] == '*':
        print(int(s[0]) * int(s[2]))
    elif s[1] == '/':
        print(int(s[0]) // int(s[2]))

Solution (Python):

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

Solution (Python):
while True:
	line = input()
	a,op,b=line.split(" ")
	if op == "?":
		break
	print(int(eval(line)))

Solution (Python):
while True:
    table = input().split()

    a = int(table[0])
    op = table[1]
    b = int(table[2])

    if op == '?':
        break

    if op == '+':
        print("%d"%(a+b))
    elif op == '-':
        print("%d"%(a-b))
    elif op == '/':
        print("%d"%(a/b))
    else:
        print("%d"%(a*b))

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

Solution (Python):
ans = 0
for x in range(30):    
    a, op, b = input().split()
    if op == "+":
      ans = int(a) + int(b)
      print(str(ans))
    elif op == "-":
      ans = int(a) - int(b)
      print(str(ans))
    elif op == "*":
      ans = int(a) * int(b)
      print(str(ans))
    elif op == "/":
      ans = int(a) / int(b)
      print(str(int(ans)))
    else:
      break

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

  if op == "?":
    break
  elif op == "+":
    answer = a + b
  elif op == "-":
    answer = a - b
  elif op == "*":
    answer = a * b
  elif op == "/":
    answer = a / b

  print(int(answer))

Solution (Python):
while True:
    a,op,b=input().split()
    a=int(a)
    b=int(b)
    if op=="?":
        break

    
    if op=="+":
        print(a+b)
    elif op=="-":
        print(a-b)
    elif op=="*":
        print(a*b) 
    elif op=="/":
        print(a//b)

Solution (Python):
l=[]
while True:
    ll=[]
    a,op,b=input().split()
    ll.append(int(a))
    ll.append(op)
    ll.append(int(b))
    if op=="?":
        break
    l.append(ll)

for i in range(len(l)):
    if l[i][1]=="+":
        print(int(l[i][0]+l[i][2]))
    elif l[i][1]=="-":
        print(int(l[i][0]-l[i][2]))
    elif l[i][1]=="*":
        print(int(l[i][0]*l[i][2]))
    else:
        print(int(l[i][0]/l[i][2]))

Solution (Python):

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

Solution (Python):
while True:
    expr = input()
    if "?" in expr:
        break
    if "/" in expr:
        a, op, b = expr.split()
        print(int(a) // int(b))
    else:
        print(eval(expr))

Solution (Python):

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

Solution (Python):
while True:
    text = input().split()
    a = int(text[0])
    op = text[1]
    b = int(text[2])

    if op == "?":
        break
    
    elif op == "+":
        print(a+b)
    elif op == "-":
        print(a-b)
    elif op == "*":
        print(a*b)
    elif op == "/":
        print(a//b)

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

    if op == "+":
        print(a + b)
    elif op == "-":
        print(a - b)
    elif op == "*":
        print(a * b)
    elif op == "/":
        print(int(a / b))
    else:
        break

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

    if op == "?":
        break

    a = int(a)
    b = int(b)

    if op == "+":
        print(a + b)
    elif op == "-":
        print(a - b)
    elif op == "*":
        print(a * b)
    elif op == "/":
        print(a // b)

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

Solution (Python):
while(1):
  a,op,b = input().split()
  a ,b = int(a), int(b)
  if(op == '+'): print(a+b)
  if(op == '-'): print(a-b)
  if(op == '*'): print(a*b)
  if(op == '/'): print(int(a/b))
  if(op == '?'): break

Solution (Python):

def operate(op_str, a, b):
    if op_str == '+':
        return a + b
    elif op_str == '-':
        return a - b
    elif op_str == '*':
        return int(a * b)
    elif op_str == '/':
        return int(a / b)

while True:
    i = input()
    a, op, b = i.split()
    if (op == '?'):
        break
    else:
        print(operate(op, int(a), int(b)))

Solution (Python):
while True:
    a,op,b = list(input().split())
    a = int(a)
    b = int(b)
    op = str(op)
    if op == '?':
        break
    if op == '+':
        print(a+b)
    if op == '-':
        print(a-b)
    if op == '*':
        print(a*b)
    if op == '/':
        print(a//b)

Solution (Python):

k = 0
while k == 0:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    if op == '+':
        print(a+b)
    elif op == '-':
        print(a-b)
    elif op == '*':
        print(a*b)
    elif op == '/':
        print(a//b)
    else:
        k = 1

Solution (Python):
while  True:
    table = input().split()
    a = int(table[0])
    op = table[1]
    b = int(table[2])

    if op == "+":
        print(a + b)
    elif op == "*":
        print(a * b)
    elif op == "-":
        print(a - b)
    elif op == "/":
        print(a // b)
    else:
        break

Solution (Python):
while True:
    a,op,b = map(str, raw_input().split())
    if op == "?":
        break
    if op == "+":
        print int(a)+int(b)
    if op == "-":
        print int(a)-int(b)
    if op == "*":
        print int(a)*int(b)
    if op == "/":
        print int(a)/int(b)

Solution (Python):
while True:
    a, op, b = input().split()
    A = int(a)
    B = int(b)
    if op == '+':
        print(A+B)
    elif op == '-':
        print(A-B)
    elif op == '*':
        print(A*B)
    elif op == '/':
        print(A//B)
    elif op == '?':
        quit()

Solution (Python):

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

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

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

Solution (Python):
import math
while True:
    a, op, b = input().split()  
    if op == "?":
        break
    if op == "+":
        print(int(a) + int(b))
    if op == "-":
        print(int(a) - int(b))
    if op == "*":
        print(int(a)*int(b))
    if op == "/":
        print(math.floor(int(a)/int(b)))

Solution (Python):
while True:
    l = input().split()
    a =int(l[0])
    op = (l[1])
    b = int(l[2])
    
    if op == "+":
        print(a + b)
    elif op == '-':
        print(a - b)
    elif op == '*':
        print(a * b)
    elif op =='/':
        print(a // b)
    else:
       break

Solution (Python):
def calculator(a, b, op):

    res = None

    if op == "?":
        pass
    elif op == "+":
        print(str(int(a + b)))

    elif op == "-":
        res = a - b
        print(str(int(a - b)))

    elif op == "*":
        res = a * b
        print(str(int(a * b)))

    elif op == "/":
        res = a / b
        print(str(int(a / b)))
    
    else:
        pass


if __name__ == "__main__":

    while(1):


        param = input()
        param = param.split(" ")
        
        a = int(param[0])
        op = param[1]
        b = int(param[2])

        if op != "?":
            calculator(a, b, op)
        else:
            break

Solution (Python):
for i in range(100):
    a = input()
    if "?" in a:
        break
    print(int(eval(a)))

Solution (Python):
a,b,c=input().split()
a,c=int(a),int(c)
while b!='?':
    if b=='+':
        print(a+c)
    elif b=='-':
        print(a-c)
    elif b=='*':
        print(a*c)
    elif b=='/':
        print(a//c)
    a,b,c=input().split()
    a,c=int(a),int(c)

Solution (Python):
while True:
    list = input().split()
    a = int(list[0])
    op = list[1]
    b = int(list[2])
    if op == '?':
        break
    elif op == '+':
        print(a+b)
    elif op == '-':
        print(a-b)
    elif op == '*':
        print(a*b)
    elif op == '/':
        print(a//b)

Solution (Python):
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)

Solution (Python):
while True:
    a,op,b = input().split()
    a,b = map(int,[a,b])
    if op=="+":
        print(a+b)
    elif op=="-":
        print(a-b)
    elif op=="*":
        print(a*b)
    elif op=="/":
        print(a//b)
    elif op=="?":
        exit()

Solution (Python):
while True:
    a,op,b = input().split()
    a = int(a)
    b = int(b)
    if op == '+':
        print(a+b)
    elif op == '-':
        print(a-b)
    elif op == '*':
        print(a*b)
    elif op == '/':
        print(a//b)
    else:
        break

Solution (Python):
while True:
    
    a, b, c = input().split()
    a = int(a)
    c = int(c)

    if b == "+": 
        print(a+c)
    elif b == "-":
        print(a-c)
    elif b == "*":
        print(a*c)
    elif b == "/":
        print(a//c)
    else:
        break

Solution (Python):
while True:
    s = input()
    if '?' in s:
        break
    else:
        print(int(eval(s)))

Solution (Python):
while True:
    table = input().split()
    a = int(table[0])
    op = table[1]
    b = int(table[2])
    if op == '?':
        break
    if op == '+':
        print("%d"%(a+b))
    elif op == '-':
        print("%d"%(a-b))
    elif op == '/':
        print("%d"%(a/b))
    else:
        print("%d"%(a*b))

Solution (Python):
while True:
    data_set = input().split(" ")
    if data_set[1] == "+":
        calc = int(data_set[0]) + int(data_set[2])
        print(calc)
    elif data_set[1] == "-":
        calc = int(data_set[0]) - int(data_set[2])
        print(calc)
    elif data_set[1] == "*":
        calc = int(data_set[0]) * int(data_set[2])
        print(calc)
    elif data_set[1] == "/":
        calc = int(data_set[0]) // int(data_set[2])
        print(calc)
    elif data_set[1] == "?":
        break

Solution (Python):
import math
S = open(0).read().split()
for a, op, b in zip(*[iter(S)]*3):
    if op == '?':
        break
    print(int(math.floor(eval(a+op+b))))

Solution (Python):
while True:
    data = input().split()
    a = int(data[0])
    op = data[1]
    b = int(data[2])
    r = 0

    if op == "?":
        break

    if op == "+":
        r = a+b
    elif op == "-":
        r = a-b
    elif op == "*":
        r = a*b
    elif op == "/":
        r = a//b
    else:
        r = a%b
    print(r)

Solution (Python):
while True:
    lis = input().split()
    a = int(lis[0])
    b = lis[1]
    c = int(lis[2])
    if b == '?' :
        break
    if b == '+':
        print(a+c)
    if b == '-':
        print(a-c)
    if b == '*':
        print(a*c)
    if b== '/':
        print(a//c)

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

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

def main():
    
    a,op,b=input().split()
    while op!="?":
        if op=="/":op="//"
        print(eval(a+op+b))
        a, op, b = input().split()

main()

Solution (Python):
while True:
    table = input().split()

    a = int(table[0])
    op = table[1]
    b = int(table[2])

    if op == '?':
        break

    if op == '+':
        print("%d"%(a+b))
    elif op == '-':
        print("%d"%(a-b))
    elif op == '/':
        print("%d"%(a/b))
    else:
        print("%d"%(a*b))

Solution (Python):
while True:
    x, op, y = input().split()
    a = int(x)
    b = int(y)
    if op == '?':
        break
    elif op == '+':
        print("{:d}".format(a+b))
    elif op == '-':
        print("{:d}".format(a-b))
    elif op == '*':
        print("{:d}".format(a*b))
    elif op == '/':
        print("{:d}".format(a//b))

Solution (Python):

def Simple_Calculator(a,b,op):
    if op == '+':
        return a+b
    elif op == '-':
        return a-b
    elif op == '*':
        return a*b
    elif op == '/':
        return a/b
    else:
        return None


def main():
    while True:
        a,op,b= input().split()
        a,b = map(int,(a,b))
        if op == '?':
            break
        else:
            res = Simple_Calculator(a,b,op)
            print("%d" %(res))

if __name__ == "__main__":
    main()

Solution (Python):
import sys
  
for s in sys.stdin:
    if '?' in s:
        break
    else:
        a_str,op,b_str = s.split()
        a,b = int(a_str),int(b_str)

        if op == '+':
            print(a + b)
        elif op == '-':
            print(a - b)
        elif op == '/':
            print(a //  b)
        elif op == '*':
            print(a * b)

Solution (Python):
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
    elif op == '*':
        ANS = a*b

    print(ANS)

Solution (Python):
while 1 == 1:
    a,b,c = input().split()
    a = int(a)
    c = int(c)
    if b == "+":
        print(a+c)
    elif b == "-":
        print(a-c)
    elif b == "*":
        print(a*c)
    elif b == "/":
        print(a//c)
    else:
        break

Solution (Python):
while True:
    a,op,b = map(str,input().split())

    a = int(a)
    b = int(b)
    if op == "*":
        print(a*b)
    elif op == "+":
        print(a+b)
    elif op == "-":
        print(a-b)
    elif op == "/":
        print(a//b)
    elif op == "?":
        break

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

Solution (Python):
while True:
  a, b, c = input().split()
  a = int(a)
  c = int(c)
  if b == "+":
    print(a+c)
  elif b == "-":
    print(a-c)
  elif b == "/":
    print(int(a/c) )
  elif b == "*":
    print(a*c)
  else:
    break

Solution (Python):

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

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

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

Solution (Python):
while True:
    a_op_b = input()
    
    if a_op_b.split()[1] == "?":
        break
    else:
        print(int(eval(a_op_b)))

Solution (Python):
op = "start"
while op != "?":    
    calc = input().split()
    a = int(calc[0])
    op = calc[1]
    b = int(calc[2])
    if op == "+" : ans = a + b
    elif op == "-" : ans = a - b
    elif op == "*" : ans = a * b
    elif op == "/" : ans = int(a / b)
    elif op == "?" : break
    print(ans)

Solution (Python):
while True:
    ls=input().split()
    if ls[1]=='+':
        print(int(ls[0])+int(ls[2]))
    elif ls[1]=='-':
        print(int(ls[0])-int(ls[2]))
    elif ls[1]=='/':
        print(int(ls[0])//int(ls[2]))
    elif ls[1]=='*':
        print(int(ls[0])*int(ls[2]))
    else:break

Solution (Python):
OPERATORS = {
    "+": lambda x, y: x + y,
    "-": lambda x, y: x - y,
    "*": lambda x, y: x * y,
    "/": lambda x, y: x // y
}







while True:
    a, b, c  = input().split()
    a = int(a)
    c = int(c)
    if b == "?":
        break
    print(OPERATORS.get(b)(a, c))

Solution (Python):
while True:
  a, op, b, *_ = input().split()

  if op == "?": break

  r = 0
  a = int(a)
  b = int(b)

  if op == "+":
    r = a + b
  elif op == "-":
    r = a - b
  elif op == "*":
    r = a * b
  elif op == "/":
    r = a / b

  print(int(r))

Solution (Python):


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

Solution (Python):

while True:
	a, op, b = list(input().split())
	a = int(a)
	b = int(b)
	if op == '+':
		r = a + b
	elif op == '-':
		r = a - b
	elif op == '*':
		r = a * b
	elif op == '/':
		r = a / b
	else :
		break
	print("%d"%r)

Solution (Python):
while True:
    l = input().split()
    op =l[1]
    if op == "?":
        break
    a,b = int(l[0]),int(l[2])
    
    if op == "+":
        print(a+b)
    elif op == "-":
        print(a-b)
    elif op == "*":
        print(a*b)
    else:
        print(a//b)