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):
def main():
    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))
    return 0


if __name__ == "__main__":
    main()

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

    if op == "?":
        break

    if op == "+":
        ans_list.append(a + b)
    if op == "-":
        ans_list.append(a - b)
    if op == "*":
        ans_list.append(a * b)
    if op == "/":
        ans_list.append(a // b)

for ans in ans_list:
    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))

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

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

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

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):
while True:
    a,op,b=map(str,input().split())
    if not op=='?':
        print(int(eval(a + op + b)))
    else:
        break

Solution (Python):
while True:
    line = input().split()
    a = int(line[0])
    op = line[1]
    b = int(line[2])
    
    def add(a, b):
        add = a + b
        return add
    def sub(a, b):
        sub = a - b
        return sub
    def mul(a, b):
        mul = a * b
        return mul
    def div(a, b):
        div = a // b
        return div
    
    if op == '+':
        print(add(a, b))
    elif op == '-':
        print(sub(a, b))
    elif op == '*':
        print(mul(a, b))
    elif op == '/':
        print(div(a, b))
    else:
        break

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

while True:
    val = list(input().split())
    if val[1] == '?':
        break
    else:
        cal_list.append(val)

for CALC in cal_list:
    x, y = int(CALC[0]), int(CALC[2])
    if CALC[1] != '/':
        eval('print(x' + CALC[1]+ 'y)')
    else:
        eval('print(x' + CALC[1]+ '/y)')

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

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

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

Solution (Python):
def calc(a, op, b):
    if op == '+':
        return a + b
    if op == '-':
        return a - b
    if op == '*':
        return a * b
    if op == '/':
        return a // b


if __name__ == '__main__':
    while True:
        a, op, b = (i for i in input().split())
        if op == '?':
            break
        else:
            print(calc(int(a), op, int(b)))

Solution (Python):
while 1:
    a,op,b=input().split()
    a,b=int(a),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 True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    if op == "?":
        break
    else:
        if op == "+":
            ans.append(a+b)
        elif op == "-":
            ans.append(a-b)
        elif op == "*":
            ans.append(a*b)
        elif op == "/":
            ans.append(a//b)
for an in ans:
    print(an)

Solution (Python):
import operator

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

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):
def tashizan(a, b):
    c = a + b
    return c


def hikizan(a, b):
    c = a - b
    return c


def kakezan(a, b):
    c = a * b
    return c


def warizan(a, b):
    c = a // b
    return c


def hantei(op):
    if op == "+":
        ans = tashizan(a, b)
    elif op == '-':
        ans = hikizan(a, b)
    elif op == '*':
        ans = kakezan(a, b)
    elif op == '/':
        ans = warizan(a, b)
    return ans


while True:
    a, op, b = input().split()   
    a = int(a)                   
    b = int(b)                   
    
    if op == "?":
        break
    else:
        print(hantei(op))

Solution (Python):
while True:
    total= input().split()
    a=int(total[0])
    op = total[1]
    b=int(total[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 == "+":
        c = a + b
    elif op == "-":
        c = a - b
    elif op == "*":
        c = a * b
    elif op == "/":
        c = a // b
    print(c)

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

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

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

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

Solution (Python):
def add(x, y):
    return x + y


def sub(x, y):
    return x - y


def mul(x, y):
    return x * y


def div(x, y):
    return x // y


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

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

    if op == "+":
        print(add(a, b))
    elif op == "-":
        print(sub(a, b))
    elif op == "*":
        print(mul(a, b))
    elif op == "/":
        print(div(a, b))
    else:
        break

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

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

Solution (Python):
while True :
    a, op, b = map(str, input().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 True:
    a, b, c = input().split()
    a, b, c = int(a), str(b), int(c)
    if b == '?':
        break
    elif b == '+':
        print(f"{a + c}")
    elif b == '-':
        print(f"{a - c}")
    elif b == '*':
        print(f"{a * c}")
    else:
        print(f"{a // c}")

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

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

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

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

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

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(int(a/b))
    elif op == "?":
        break

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

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 == '/' and b != 0:
        print(a // b)
    else:
        None

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

Solution (Python):
i = 0
while True:
    a,op,b = input().split(" ")
    a = int(a)
    b = int(b)
    if op == "+":
        print(a + b)
        continue
    elif op == "-":
        print(a - b)
        continue
    elif op == "*":
        print(a * b)
        continue
    elif op == "/":
        i = (a / b)
        print(int(i))
        continue
    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 = [x for x in input().split()]
    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))
    if op == "?": 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):
cal_list = input().split()

while cal_list[1] != "?":
    if cal_list[1] == "+":
        print(int(cal_list[0]) + int(cal_list[2]))
    elif cal_list[1] == "-":
        print(int(cal_list[0]) - int(cal_list[2]))
    elif cal_list[1] == "/":
        ans = int(cal_list[0]) / int(cal_list[2])
        print(int(ans))
    else:
        print(int(cal_list[0]) * int(cal_list[2]))
    cal_list = input().split()

Solution (Python):
a, op, b = 0, '', 0
while op != '?':
    a, op, b = input().split()
    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):
import math
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(math.floor(a / b))
    elif op == "?":
        break

Solution (Python):
calc_list = list()

while True:
    calc = {}
    base = input("")
    term = base.split(' ')
    a = int(term[0])
    op = term[1]
    b = int(term[2])
    if(op == '?'):
        break
    calc = {'a':a, 'op':op, 'b':b}
    calc_list.append(calc)

for ca in calc_list:
    if(ca['op'] == '+'):
        print("{}".format(ca['a'] + ca['b']))
    elif(ca['op'] == '-'):
        print("{}".format(ca['a'] - ca['b']))
    elif(ca['op'] == '*'):
        print("{}".format(ca['a'] * ca['b']))
    elif(ca['op'] == '/'):
        print("{}".format(ca['a'] // ca['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:
    list = input().split()
    a = int(list[0])
    b = list[1]
    c = int(list[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 (1):
    a, op, b = map(str, input().split())

    if op == '?':
        exit()
    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()
    a=int(a)
    b=int(b)

    if op == "?":
        break

    elif op == "+":
        print(a + b)

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

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

    elif str(op) == "/":
        print(a // b)

    else:
        break

Solution (Python):
def operand(a, op, b):
    if op == '+':
        return int(a) + int(b)
    
    elif op == '-':
        return int(a)- int(b)

    
    elif op == '*':
        return int(a) * int(b)
    
    else:
        return int(a) // int(b) 

list = []
while True:
    a, op, b = map(str, input().split())
    if op == '?':
        break
    list.append([a, op, b])

for i in range(len(list)):
    print(operand(list[i][0], list[i][1], list[i][2]))

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:
    line = input().split()
    a,b,c= line[0],line[1],line[2]
    if b=="?":
        break
    elif b =="*":
        print(int(a)*int(c))
    elif b == "+":
        print(int(a)+int(c))
    elif b == "-":
        print(int(a)-int(c))
    elif b == "/":
        print(int(int(a)/int(c)))

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

Solution (Python):
while True:
    a, op, b = input().split()
    
    a = int(a)
    b = int(b)
    
    if op == "+":
        x = a + b
        print(x)
    elif op == "-":
        x = a - b
        print(x)
    elif op == "*":
        x = a * b
        print(x)
    elif op == "/":
        x = a // b
        print(x)
    elif op == "?":
        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 True:
    a, b, c = input().split()
    if b == "?":
        break
    elif 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):
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:
    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()
    
    if op == '?':
        break
    
    a = int(a)
    b = int(b)
    
    if op == '+':
        print(a + b)
    if op == '-':
        print(a - b)
    if op == '*':
        print(a * b)
    if op == '/':
        print(a // b)

Solution (Python):
while 1:
  s=input()
  if s.split()[1]=="?":exit()
  print(int(eval(s)))

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

Solution (Python):
while True:
    try:
        print(int(eval(input())))
    except:
        break

Solution (Python):

for i in range(100):
    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, ope, b = input().split()
  result = 0
  if ope == '?':
    break

  if ope == '+':
    result = int(a) + int(b)
  elif ope == '-':
    result = int(a) - int(b)
  elif ope == '*':
    result = int(a) * int(b)
  elif ope == '/':
    result = int(int(a) / int(b))
  print(result)

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 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
    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 = 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))
    else :
        pass

Solution (Python):
a = []
op = []
b = []

while True:
    a1, op1, b1 = input().split()
    a1 = int(a1)
    b1 = int(b1)
    if op1 == '?':
        break
    elif op1 == '+':
        print(a1+b1)
    elif op1 == '-':
        print(a1-b1)
    elif op1 == '*':
        print(a1*b1)
    elif op1 == '/':
        print(a1//b1)

Solution (Python):
while True:
    a, op, b = input().split()
    a, b = int(a), 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):
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:
    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, 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)
    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 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):
while True:
    a, op, b = map(str, 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):
import sys
for e in sys.stdin:
    a, op, b = e.split()
    a = int(a)
    b = int(b)
    if op == "+":
        print("%d"%(a+b))
    if op == "-":
        print("%d"%(a-b))
    if op == "*":
        print("%d"%(a*b))
    if op == "/":
        print("%d"%(a/b))
    if op == "?":
        break

Solution (Python):
data_setlist = []
while True:
    a, OP, b = map(str, input().split())
    if OP == "?":
        break
    data_setlist.append((a, OP, b))

for each_data in data_setlist:
    if each_data[1] == '+':
        print(int(each_data[0]) + int(each_data[2]))
    if each_data[1] == '-':
        print(int(each_data[0]) - int(each_data[2]))
    if each_data[1] == '*':
        print(int(each_data[0]) * int(each_data[2]))
    if each_data[1] == '/':
        if int(each_data[2]):
            print(int(int(each_data[0])/int(each_data[2])))

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

Solution (Python):
while(1):
    l = input().split()
    a = int(l[0])
    b = int(l[2])
    op = l[1]
    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 = list(map(str,input().split()))

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

    if a[1] == '+':
        print(int(a[0])+int(a[2]))
    if a[1] == '-':
        print(int(a[0])-int(a[2]))
    if a[1] == '*':
        print(int(a[0])*int(a[2]))
    if a[1] == '/':
        print(int(a[0])//int(a[2]))

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 True:
    a, op, b = map(str, 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))
    else:
        break

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))
    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):
for i in range (0,10000) :
    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:
  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 == "?":
        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 = (x for x in 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))
    else: break

Solution (Python):
while True:
    a, op, b = map(str, input().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)
        elif op=='/': print(a//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)
    elif op == "/":
        print(a // b)
    else:
        print("error")

Solution (Python):
while True:
    s = input().split()
    if s[1] == '?':
        break
    elif s[1] == '/':
        s[1] = '//'
    print(eval(' '.join(s)))

Solution (Python):
while(1):
    a,op,b=input().split()
    a=int(a)
    b=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 1:
    a,o,p = input().split()
    if o == "?":
        break
    print(int(eval(a+o+p)))

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