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):
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:
    n = input().split()
    a = int(n[0])
    op = str(n[1])
    b = int(n[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):
a, op, b = input().split()
a = int(a)
b = int(b)
while op != '?':
    if op == '/':
        print(a // b)
    elif op == '+':
        print(a + b)
    elif op == '-':
        print(a - b)
    else:
        print(a * b)
    a, op, b = input().split()
    a = int(a)
    b = 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=="?":
        break

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

    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):
for i in range(10**6):
  a,b,c = map(str,input().split())
  if b == "?":
    break
  else:
    if b == "+":
      print(int(a)+int(c))
    elif b == "-":
      print(int(a)-int(c))
    elif b == "*":
      print(int(a)*int(c))
    elif b == "/":
      print(int(a)//int(c))

Solution (Python):
import math

loop = 1
while loop == 1:
    a, op, b = (x for x in input().split())

    if op == "+":
        ans = int(a)+int(b)
    elif op == "-":
        ans = int(a)-int(b)
    elif op == "*":
        ans = int(a)*int(b)
    elif op == "/":
        ans = math.floor(int(a)/int(b))
    else:
        loop = 0
        break

    print(ans)

Solution (Python):
while(True):
    line=input().rstrip().split(' ')
    a=int(line[0])
    b=int(line[2])
    c=line[1]

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

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,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 == "?": break
    elif op =="+":
        print(a+b)
    elif op =="-":
        print(a-b)
    elif op =="*":
        print(a*b)
    else:
        print(a//b)

Solution (Python):
import math
string=input().split()
while not ('?' in string):
    if string[1]=='+':
        print(int(string[0])+int(string[2]))
    elif string[1]=='-':
        print(int(string[0])-int(string[2]))
    elif string[1]=='*':
        print(int(string[0])*int(string[2]))
    else:
        print(int(string[0])//int(string[2]))
    string=input().split()

Solution (Python):
while True:
    x = input().split(" ")
    a = int(x[0])
    b = int(x[2])
    op = x[1]
    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()
 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, 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()
    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 = 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)
    else:
        print(a // b)

Solution (Python):
while True:
    e =""
    nums = [str(e) for e in input().split()]
    if nums[1] == "+":
        print ("{0}".format(int(nums[0]) + int(nums[2])))
    elif nums[1] == "-":
        print ("{0}".format(int(nums[0]) - int(nums[2])))
    elif nums[1] == "*":
        print ("{0}".format(int(nums[0]) * int(nums[2])))
    elif nums[1] == "/":
        print ("{0}".format(int(nums[0]) // int(nums[2])))
    else:
        exit()

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

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

Solution (Python):
import math

while True:
    a, op , b = input().split()
    
    if op == "+":
        result = int(a) + int(b)
    elif op == "-":
        result = int(a) - int(b)
    elif op == "*":
        result = int(a) * int(b)
    elif op == "/":
        result = math.floor(int(a) / int(b))
    elif op == "?":
        break;

    print(result)

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):

op = 'a'

while op != '?':
    l = input().split()
    a = int(l[0])
    b = int(l[2])
    op = l[1]
    answer = 0

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

Solution (Python):

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

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

    a_num = int(a)
    b_num = int(b)

    if op == '+':
        print(a_num + b_num)
    elif op == '-':
        print(a_num - b_num)
    elif op == '*':
        print(a_num * b_num)
    else:
        print(int(a_num / b_num))

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):
def main():
    a, op, b = (i for i in input().split())
    while op != '?':
        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)
        a, op, b = (i for i in input().split())

if __name__ == '__main__':
    main()

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

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

    if op=='?':
        break

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

Solution (Python):
A, op, B = input().split()
A = int(A)
B = int(B)

while(op != "?"):
    if op == "+":
        print(A + B)
    elif op == "-":
        print(A - B)
    elif op == "*":
        print(A * B)
    elif op == "/":
        print(int(A / B))
    A, op, B = input().split()
    A = int(A)
    B = 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)
    else:
        break

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

    if op =='+':
        c = a+b
        print(c)
    elif op =='-':
        d = a-b
        print(d)
    elif op =='*':
        e = a*b
        print(e)
    elif op =='/':
        f =a/b
        print(int(f))
    else:
        break

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

Solution (Python):
while True:
    list_input = input().split()
    calculate = {'+': lambda a, b: a + b,
                 '-': lambda a, b: a - b,
                 '/': lambda a, b: a // b,
                 '*': lambda a, b: a * b,
                 }
    if list_input[1] == '?':
        break
    else:
        print(calculate[list_input[1]](int(list_input[0]), int(list_input[2])))

Solution (Python):
x = []
i = 0

while True :
    a, op, b = input().split()
    c = int(a)
    d = int(b)
    
    if op == "?" :
        break
    
    if op == "+" :
        y = c + d
        x.append(y)
        i += 1
        
    if op == "-" :
        y = c - d
        x.append(y)
        i += 1
        
    if op == "*" :
        y = int(c * d)
        x.append(y)
        i += 1
        
    if op == "/" :
        y = int(c / d)
        x.append(y)
        i += 1
        
for j in range(0, i) :
    print(x[j])

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

    elif b == "-":
        print(a-c)

    elif b == "*":
        print(a*c)

    elif b == "/":
        print(a//c)

    else:
        break

Solution (Python):
while True:
    a, op, b = list(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))
    else:
        print(int(a) // int(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)
    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)
    elif op == "?" :
        break

Solution (Python):
Ans = 0

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

Solution (Python):
for i in range(100000):
    a = input()
    b = a.split(" ")
    if b[1] == "+":
        print(int(b[0]) + int(b[2]))
    if b[1] == "-":
        print(int(b[0]) - int(b[2]))
    if b[1] == "*":
        print(int(b[0]) * int(b[2]))
    if b[1] == "/":
        print(int(b[0]) // int(b[2]))
    if b[1] == "?":
        break

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

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):
while 1:
    a,s,b=input().split()
    a=int(a)
    b=int(b)
    if s=="?":
        break
    if s=="+":
        print(a+b)
    elif s=="-":
        print(a-b)
    elif s=="*":
        print(a*b)
    else:
        print(a//b)

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

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, op, b=input().split()
    a=int(a)
    b=int(b)
    if op=="+":
        answer=a+b
    elif op=="-":
        answer=a-b
    elif op=="*":
        answer=a*b
    elif op=="/":
        answer=a//b
    elif op=="?":
        break
    print(answer)

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

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 (1):
    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 = 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):
ans=[]
while 1:
    a,b,c=input().split()
    if b=="?":break
    ans.append(eval(a+b+c))
for i in ans:
    print(int(i))

Solution (Python):
x = True
s_list = []
while x == True:
    s_list.append(input().split())
    if s_list[-1][1] == '?':
        x = False

a_list = []
for i in range(len(s_list)-1):
    if s_list[i][1] == '+':
        ans = int(s_list[i][0]) + int((s_list[i][2]))
        a_list.append(ans)
    elif s_list[i][1] == '-':
        ans = int(s_list[i][0]) - int((s_list[i][2]))
        a_list.append(ans)
    elif s_list[i][1] == '*':
        ans = int(s_list[i][0]) * int((s_list[i][2]))
        a_list.append(ans)
    elif s_list[i][1] == '/':
        ans = int(s_list[i][0]) // int((s_list[i][2]))
        a_list.append(ans)

for a in a_list:
    print(a)

Solution (Python):
exp = input()
while "?" not in exp:
    print(eval(exp.replace("/", "//")))
    exp = input()

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)
    else:
        print(int(a / b))

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

Solution (Python):
while True:
    table = input().split()
    
    a = int(table[0])
    op = table[1]
    b = int(table[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):
import math

A = []
while True:
    a, b ,c = map(str, input().split())
    if b == "?":
        break
    else:
        B = [a,b,c]
        A.append(B)

for i in A:
    if i[1] == "+":
        print(int(i[0]) + int(i[2]))
    elif i[1] == "-":
        print(int(i[0]) - int(i[2]))
    elif i[1] == "*":
        print(int(i[0]) * int(i[2]))
    elif i[1] == "/":
        print(math.floor(int(i[0]) / int(i[2])))

Solution (Python):
def main():
    a,op,b = input().split()
    a = int(a)
    b = int(b)
    if op == "?":
        return False
    if op == "+":
        ans = a+b
    elif op == "-":
        ans = a-b
    elif op == "*":
        ans = a*b
    else:
        ans = a//b
    print(ans)
    return True

while main():
    pass

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):

x = []
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    if op =='+':
        ans = a + b
        x += [ans]
    if op =='-':
        ans = a - b
        x += [ans]
    if op =='*':
        ans = a * b
        x += [ans]
    if op =='/':
        ans = a // b
        x += [ans]
    if op =='?':
        break
for i in range(len(x)):
    print(x[i])

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, op, b = input().strip().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)
    else:
        print(a // b)

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


for a, op, b in li:
    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 True:
    a,op,b = (x for x in 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)
    else:
        print(int(a/b))

Solution (Python):

while True:
    a = input().split()

    op = a[1]
    x = int(a[0])
    y = int(a[2])

    if op == "?":
        exit(0)
    elif op == "+":
        print(x+y)
    elif op == "*":
        print(x*y)
    elif op == "-":
        print(x-y)
    elif op == "/":
        print(int(x/y))

Solution (Python):
a, op, b = map(str, input().split())
while op != "?":
    if 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))
    a, op, b = map(str, input().split())

Solution (Python):


while True:
    x, op, y = map(str, input().split())
    if op == '?':
        break
    a = int(x)
    b = int(y)
    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 = 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:
    s1,s2,s3=input().split()
    a=int(s1)
    b=int(s3)
    if s2=="?":
        break
    elif s2=="+":
        print(a+b)
    elif s2=="-":
        print(a-b)
    elif s2=="*":
        print(a*b)
    elif s2=="/":
        print(int(a/b))

Solution (Python):
while True:
    a,op,b = input().split()
    a = int(a)
    b = int(b)
    ans = 0
    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):
def test():

	while True:
	
		i = input().split()

		a = int(i[0])
		b = int(i[2])

		if i[1] == '?':
			break

		if i[1] == '+':
			print(a + b)
		elif i[1] == '-':
			print(a - b)
		elif i[1] == '*':
			print(a * b)
		elif i[1] == '/':
			print(a // b)

if __name__ == "__main__":
	test()

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

Solution (Python):
while True:
    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(a//b)
    if op == '?':
        break

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):
s=1
while(s!=0):
    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)
    else:
        break

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

Solution (Python):
while 1:
 try:print eval(raw_input())
 except:exit()

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

Solution (Python):

while True:
    A = list(map(str,input().split()))
    a = int(A[0])
    b = int(A[2])

    if A[1] == '+':
        print(a + b)
    elif A[1] == '-':
        print(a - b)
    elif A[1] == '*':
        print(a * b)
    elif A[1] == '/':
        print(a // b)
    elif A[1] == '?':
        break

Solution (Python):
calculator = []
while True:
    a_, op, b_ = input().split(' ')
    a = int(a_)
    b = int(b_)
    if op == '?':
        break
    calculator.append([a, op, b])

for line in calculator:
    a, op, b = line
    if op == '+':
        res = a + b
    elif op == '-':
        res = a - b
    elif op == '*':
        res = a * b
    elif op == '/':
        res = a // b
    else:
        print(f"{a},{op},{b}")
        raise RuntimeError
    print(res)

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

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

    if op == '?':
        break

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

Solution (Python):
str = input()
while not(str.split()[1] == '?'):
	print(int(eval(str)))
	str = input()

Solution (Python):
while (1):
    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 = input()
    if '?' in a:
        break
    print(int(eval(a)))

Solution (Python):
while True:
    a, op, b = raw_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):
for i in range(100000):
    s = input().rstrip().split(" ")
    a = int(s[0])
    b = s[1]
    c = int(s[2])
    if b =="?":
        break
    if b == "+":
        print(a+c)
    if b == "-":
        print(a-c)
    if b == "*":
        print(a*c)
    if b == "/":
        print(int(a/c))

Solution (Python):
import sys

strs = sys.stdin.readline().split(' ')

while strs[1] != '?':
  num0 = int(strs[0])
  num1 = int(strs[2])
  op = strs[1]

  if op == '+':
    ret = num0 + num1
  elif op == '-':
    ret = num0 - num1
  elif op == '*':
    ret = num0 * num1
  elif op == '/':
    ret = num0 / num1

  print(int(ret))

  strs = sys.stdin.readline().split(' ')

Solution (Python):
while True:
    a,op,b = map(str, 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 math
while True:
    arr = input().split()
    a,b,c = int(arr[0]),arr[1],int(arr[2])
    if b == "?":
        break
    elif b == "+":
        print(a+c)
    elif b == "-":
        print(a-c)
    elif b == "*":
        print(a*c)
    elif b == "/":
        print(math.floor((a/c)))

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

Solution (Python):
while True:
    a,op,b = input().split()
    if op == "?":
        break
    if 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):
ans = 0

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

Solution (Python):
while 1:
    try:
        print(eval(input().replace(" ","").replace("/","//")))
    except:
        break

Solution (Python):
import math
while True:
    list = input().split()
    a = int(list[0])
    op = list[1]
    b = int(list[2])
    
    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))
         elif op == "/":
                print(math.floor(int(a) / int(b)))

Solution (Python):
while True:
    input_cmd = list(input().split())
    
    a = int(input_cmd[0])
    b = int(input_cmd[2])
    cmd = input_cmd[1]
    
    if cmd == '?':
        break
    elif cmd == '+':
        print(a + b)
    elif cmd == '-':
        print(a - b)
    elif cmd == '*':
        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):
while True:
 a,op,b=input().split()
 a=int(a)
 b=int(b)
 if op=="?":	
   break 
 if op=="+":
  w=a+b
  print(int(w)) 
 elif op=="-":
  x=a-b
  print(int(x))
 elif op=="*":
  y=a*b
  print(int(y))
 elif op=="/":
  z=a/b
  print(int(z))

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

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

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

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))