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):
list = []
while(True):
    a, op, b = input().split()
    if op =='?':
        break
    else:
        list.append(eval(a+op+b))


for ans in list:
    print(int(ans))

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

while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    if op=='?':
        break
    calc(a, op, b)

Solution (Python):
import sys


for x in sys.stdin:
    if '?' in x:
        break
    print(eval(x.replace('/', '//')))

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

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

Solution (Python):
import math

for list in range(100):
  a, op, b = map(str, input().split())

  if op == "+":
    output = int(a) + int(b)
    print(output)
  elif op == "-":
    output = int(a) - int(b)
    print(output)
  elif op == "*":
    output = int(a) * int(b)
    print(output)
  elif op == "/":
    output = float(a) / float(b)
    print(math.floor(output))
  elif op == "?":
    break

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

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

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

Solution (Python):
import math
a = []
while True:
    try:
        a.append(list(input().split()))

    except:
        break
for i in range(len(a)):
    if a[i][1] == '+':
        print(int(a[i][0])+int(a[i][2]))
    elif a[i][1] == '-':
        print(int(a[i][0])-int(a[i][2]))
    elif a[i][1] == '*':
        print(int(a[i][0])*int(a[i][2]))
    elif a[i][1] == '/':
        print(math.floor(int(a[i][0])/int(a[i][2])))
    else:
        break

Solution (Python):
while True:
    a,op,b = map(str,input().split())
    if op == "?":
        exit ()
    else:
        if op == "/":
            print (int(a)//int(b))
        else:
            print (eval(a+op+b))

Solution (Python):
for i 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):
while True:
  inp = input()
  aopb= inp.split()
  a = int(aopb[0])
  b = int(aopb[2])
  op = aopb[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 == "+":
        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:
    exp = input()
    if '?' in exp:
        break
    print(int(eval(exp)))

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

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))
    elif b == "*":
        print(int(a)*int(c))

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

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

Solution (Python):
import math
import copy
from copy import deepcopy
import sys
import fractions

from functools import reduce

import decimal
import heapq
import collections
import itertools
sys.setrecursionlimit(100001)






def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList




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)
    else:
        exit(0)

Solution (Python):
while True:
    s = input().split()
    if s[1] == "?":
        break
    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]))
    else:
        print(int(s[0])//int(s[2]))

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

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

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

Solution (Python):
import math
while True:
 s = input().rstrip().split(' ')
 a = int(s[0])
 mark = str(s[1])
 b = int(s[2])
 if mark == "+":
  print(a + b)
 elif mark == "-":
  print(a - b)
 elif mark == "*":
  print(a * b)
 elif mark == "/":
  print(math.floor(a / b))
 elif mark == "?":
  break;

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:
    x,op,y=input().split()
    x=int(x)
    y=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 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):
ans = []

while True:
    line = list(input().split())
    if '?' in line:
        break
    if '/' == line[1]:
        line[1] = '//'
    ans.append(line)

for l in ans:
    print(eval(''.join(l)))

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("%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 == "+":
        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 == "+":
        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:
    s = input().split()
    if s[1] == "?":
        exit()
    print(int(eval("".join(s))))

Solution (Python):

while True:
	table=input().split()
	a=int(table[0])
	op=table[1]
	b=int(table[2])
	if op=='?':
		break
	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)

Solution (Python):
OP = {
    '+': lambda a,b: int(a) + int(b),
    '-': lambda a,b: int(a) - int(b),
    '*': lambda a,b: int(a) * int(b),
    '/': lambda a,b: int(a) // int(b)
}
while True:
    a, op, b = [x for x in input().split()]
    if op == '?':
        break
    print(OP[op](a, b))

Solution (Python):
def input_preprocessing():
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    return a, op, b

a = 0
op = ''
b = 0
dataset = []
while op != '?':
    a, op, b = input_preprocessing()
    dataset.append([a, op, b])

def calc(a, op, b):
    if op == '?': return
    elif op == '+': return print(a+b)
    elif op == '-': return print(a-b)
    elif op == '*': return print(a*b)
    elif op == '/': return print(a//b)
    return

for data in dataset:
    calc(data[0], data[1], data[2])

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

Solution (Python):
import math

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

    if op == "?":
        break
    elif op == "+":
        print("{}".format(a + b))
    elif op == "-":
        print("{}".format(a - b))
    elif op == "*":
        print("{}".format(a * b))
    elif op == "/":
        print("{}".format(math.floor(a / b)))
    else:
        break

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

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 == '?':
        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()
    d = int(a)
    e = int(c)
    if b == '+':print(d + e)
    if b == '-':print(d - e)
    if b == '*':print(d * e)
    if b == '/':print(d // e)
    if b == '?':break

Solution (Python):


while True:
    calc_formula = input()
    op = calc_formula.split()
    a = int(op[0])
    b = int(op[2])
    if op[1]=="?": 
        break

    if op[1]=="+":
        print(a + b)
    elif op[1]=="-":
        print(a - b)
    elif op[1]=="*":
        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
  if op == "+":
    print("{}".format(a + b)) 
  if op == "-":
    print("{}".format(a - b)) 
  if op == "*":
    print("{}".format(a * b)) 
  if op == "/":
    print("{}".format(int(a / b)))

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

Solution (Python):
while True:
    input_value = input()

    a, operator, b = input_value.split()

    if operator == '?':
        break

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

    if operator == '+':
        answer = a + b
    elif operator == '-':
        answer = a - b
    elif operator == '*':
        answer = a * b
    elif operator == '/':
        answer = a // b

    print(answer)

Solution (Python):
while 1:
    keisansiki = list(input().split())
    a,op,b = int(keisansiki[0]),keisansiki[1],int(keisansiki[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):
x = []
count = 0
ans = []
while True:
  x.append(input().split())
  if x[count][1] == "?":
    break
  count += 1
for i in range(count + 1):
  if x[i][1] == "+":
    ans.append(int(x[i][0]) + int(x[i][2]))
  elif x[i][1] == "-":
    ans.append(int(x[i][0]) - int(x[i][2]))
  elif x[i][1] == "*":
    ans.append(int(x[i][0]) * int(x[i][2]))
  elif x[i][1] == "/":
    ans.append(int(x[i][0]) // int(x[i][2]))
  else:
    for j in ans:
      print(j)

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

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

Solution (Python):
while True:
    line = input()
    if '?' in line:
        break

    print(int(eval(line)))

Solution (Python):
while True:
    try:
        a,o,b = map(str, input().split())
    
        if o == "?":
            break
    
        ans = 0
        if o == "+":
            ans = int(a) + int(b)
        elif o == "-":
            ans = int(a) - int(b)
        elif o == "/":
            ans = int(a) // int(b)
        elif o == "*":
            ans = int(a) * int(b)
        print(ans)
        
    except EOFError:
        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)
    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(a // b)
    if op == "?":
        break

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

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

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 == "+":
        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= list(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):
lis = []
while True:
    a = [i for i in input().split()]
    if a[1] == "?":
        break
    else:
        lis.append(a)

for i in lis:
    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(int(i[0]) // int(i[2]))

Solution (Python):
shuru = input().split()
n = 0
while str(shuru[1]) !='?':
    if str(shuru[1]) == '+':
        result = int(shuru[0]) +int(shuru[2]) 
        print('%d'%result)
    if str(shuru[1]) == '-':
        result = int(shuru[0]) - int(shuru[2])
        print('%d'%result)
    if str(shuru[1]) == '*':
        result = int(shuru[0]) *int(shuru[2])
        print('%d'%result)
    if str(shuru[1])  == '/' and str(shuru[2]) != '0':
        result = int(shuru[0]) / int(shuru[2])
        print('%d'%result)
    n = n + 1
    shuru = input()
    shuru = shuru.split()

Solution (Python):
i = input()
i = i.split()
n=0
while str(i[1]) !="?":
    if str(i[1]) == "+":
        op = int(i[0])+int(i[2])
        print(op)
    if str(i[1]) == "-":
        op = int(i[0])-int(i[2])
        print(op)
    if str(i[1]) == "*":
        op = int(i[0]) * int(i[2])
        print(op)
    if str(i[1]) == "/" and str(i[2]) != 0:
        op = int(i[0]) / int(i[2])
        print('%d'%op)
    n=n+1
    i = input()
    i = i.split()

Solution (Python):
def main():
  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
  
if __name__ == "__main__":
  main()

Solution (Python):
while True:
    l = list(input().split())
    a,op,b =int(l[0]), l[1], 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):
while True:
    a,op,b = input().split()
    if "?" in op:
        break
    asn = eval(f"{a} {op} {b}")
    print(int(asn))

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

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

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

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

Solution (Python):
while True:
    X = input().split()
    
    a = int(X[0])
    op = X[1]
    b = int(X[2])
    
    if op == '?' :
        break
        
    elif 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 == '+':
        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()
    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()
    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()

    if op == '?':
        break

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

Solution (Python):
ans_list = list()

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

for ans in ans_list:
    print(ans)

Solution (Python):

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

  print(ans)

Solution (Python):

import sys



while(1):
    tmp = input().split()


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




    if(op=="+"):
        print(a+b)
    if(op=="-"):
        print(a-b)
    if(op=="*"):
        print(a*b)
    if(op=="/"):
        print(a//b)
    if(op=="?"):
        sys.exit()

Solution (Python):
while True:
    list = input().split()
    a = int(list[0])
    op = list[1]
    b = int(list[2])
    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,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 = map(str,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):
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))
    elif op == '*':
        print("%d"%(a*b))

Solution (Python):
while 1:
    val = input().split()
    op = val[1]
    int_val = [val[0], val[2]]
    int_val = [int(n) for n in int_val]

    if op == '?':
        break
    else:
        if op == '+':
            ret = int_val[0] + int_val[1]
        elif op == '-':
            ret = int_val[0] - int_val[1]
        elif op == '*':
            ret = int_val[0] * int_val[1]
        elif op == '/':
            ret = int_val[0] // int_val[1]
        print(ret)

Solution (Python):
inputs = []
while True:
    s = input().split(' ')
    if s[1] == '?':
        break
    t = ' '.join(s)
    inputs.append(int(eval(t)))
for ans in inputs:
    print(ans)

Solution (Python):
while True:
    a =input()
    if '?' in a:
        break
    else:
      print("%d" %eval(a))

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

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

while True:
    x, m, y = map(str, input().split())
    if m == '?':
        break
    a.append(x)
    b.append(y)
    M.append(m)

a = list(map(int, a))
b = list(map(int, b))

for i in range(len(a)):
    if M[i] == '+':
        print(a[i] + b[i])
    elif M[i] == '-':
        print(a[i] - b[i])
    elif M[i] == '*':
        print(a[i]*b[i])
    else:
        print(a[i]//b[i])

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

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

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

Solution (Python):
import operator


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

Solution (Python):
while True:
    a, op, b = [x for x in input().split()]
    a, b = int(a), 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,b,c= map(str,input().split())
         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))
         else:
                  break

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