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

Solution (Python):





class math:
    
    pi = 3.14159265358979323846264338

    
    def gcd(self, a, b):
        if b == 0:
            return a
        return self.gcd(b, a%b)

math = math()











while True:
    ans = 0
    i = input()
    A, op, B = [x for x in i.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 = int(A) // int(B)
    elif op == "?":
        break

    print(ans)

Solution (Python):
list1 = []
while True:
    x = input()
    a = int(x.split()[0])
    b = x.split()[1]
    c = int(x.split()[2])
    if b == "+":
        d = a+c
    elif b == "-":
        d = a-c
    elif b == "*":
        d = a*c
    else:
        if c == 0:
            break
        d = int(a/c)
    if b == "?":
        break
    else:
        list1.append(d)
for i in list1:
    print(int(i))

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

Solution (Python):
import math

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

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

Solution (Python):
import sys
for s in sys.stdin:
    if '?' in s: break
    print(int(eval(s)))

Solution (Python):
while True:
    i = input("")
    if "?" not in i:
        print(int(eval(i)))
    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:
    x = input()
    list = x.split()
    [a, op, b] = list
    a = int(a)
    b = int(b)

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

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:
    x,p,y = input().split()
    x = int(x)
    y = int(y)
    
    if p=="+": 
        cal = x+y
    elif p=="-":
        cal = x-y
    elif p=="/":
        cal = int(x/y)
    elif p=="*":
        cal = x*y
    elif p=="?":
        break
    else:
        continue
    print(cal)

Solution (Python):
order = input()
orders = order.split()
while '?' not in orders:
    if orders[1] == '/':
        print(int(orders[0]) //int(orders[2]))
    else:
        print(eval(order))
    order = input()
    orders = order.split()

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):
i = 1
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))
  i += 1

Solution (Python):
def calc(num_1, op, num_2):
    if op == '+':
        print(num_1 + num_2)
    elif op == '-':
        print(num_1 - num_2)
    elif op == '*':
        print(num_1 * num_2)
    else :
        print(int(num_1 / num_2))

flag = True
while flag == True:
    info = input().split()
    num_1 = int(info[0])
    op = info[1]
    num_2 = int(info[2])
    if op == '?':
        flag = False
        break
    else :
        calc(num_1, op, num_2)

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

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

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

while (str(op) != "?"):
     a = int(a)
     b = int(b)

     if (str(op) == "+"):
          print(a + b)
     elif (str(op) == "-"):
          print(a - b)
     elif (str(op) == "*"):
          print(a * b)
     elif (str(op) == "/"):
          print(a // b)
     a, op, b = input().split()

Solution (Python):
while True:
    a, b, c = map(str, 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 = 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:
    items = input().split()
    if items[1] == '?':
        break
    if items[1] == '+':
        sum = int(items[0]) + int(items[2])
        print(sum)
    elif items[1] == '-':
        dif = int(items[0]) - int(items[2])
        print(dif)
    elif items[1] == '*':
        prod = int(items[0]) * int(items[2])
        print(prod)
    elif items[1] == '/':
        quot = int(items[0]) // int(items[2])
        print(quot)

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

Solution (Python):
import math

while True:
    inputs = list(map(str, input().split()))
    if inputs[1] == '?':
        break
    elif inputs[1] == '+':
        print(int(inputs[0]) + int(inputs[2]))
    elif inputs[1] == '-':
        print(int(inputs[0]) - int(inputs[2]))
    elif inputs[1] == '*':
        print(int(inputs[0]) * int(inputs[2]))
    elif inputs[1] == '/':
        print(math.floor(int(inputs[0]) / int(inputs[2])))

Solution (Python):



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

Solution (Python):
x = []
y = []
s = []
while True:
    x1,s1,y1 = map(str,input().split())
    if (s1 == "?") :
        break
    x.append(int(x1))
    y.append(int(y1))
    s.append(s1)

for i in range(len(x)):
    if s[i]=="+":
        print(x[i]+y[i])
    elif s[i]=="-":
        print(x[i]-y[i])
    elif s[i]=="*":
        print(x[i]*y[i])
    elif s[i]=="/":
        print(x[i]//y[i])

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

    if op =="?":
        break

    if op == "+":
        print("%d" %(a+b))

    if op == "-":
        print("%d" %(a-b)) 

    if op == "/":
        print("%d" %(a/b))

    if op =="*":
        print("%d" %(a*b))

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

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

    if op == '?':
        break

    if op == '+':
        print(a+b)
    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()
    a=int(a)
    b=int(b)
    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):
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:
    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:
    try:
        a, op, b = map(str, input().split())
        a = int(a)
        b = int(b)
        if op == '+':
            print(a+b)
        elif op == '-':
            print(a-b)
        elif op == '*':
            print(a*b)
        elif op == '/':
            print(a//b)
        elif op == '?':
            break;
    except:
        break;

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

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

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

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

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

Solution (Python):
import math
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 == '/':
        w = math.floor(a/b)
        print(w)
    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:
    x,op,y = map(str,input().split())
    if x == 0 and y == 0:
        break

    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(x)//int(y))
    else:
        break

Solution (Python):
while True:
    s = input().rstrip().split()
    if '+' in s:
        print(int(s[0])+int(s[2]))
    elif '-' in s:
        print(int(s[0])-int(s[2]))
    elif '*' in s:
        print(int(s[0])*int(s[2]))
    elif '/' in s:
        print(int(s[0])//int(s[2]))
    elif '?' in s:
        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))
    elif op == "?":
        break

Solution (Python):
while 1:
        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 True:
    l = input().split()
    if l[1] == '?':
        break
    elif l[1] == '+':
        print(int(l[0])+int(l[2]))
    elif l[1] == '-':
        print(int(l[0])-int(l[2]))
    elif l[1] == '*':
        print(int(l[0])*int(l[2]))
    elif l[1] == '/':
        print(int(l[0])//int(l[2]))

Solution (Python):
import math
while True:
    S = input()
    if '?' in S:
        exit()
    print(math.floor(eval(S)))

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

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

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

Solution (Python):
while 1:

    
    input_list = input().split()

    
    a = int(input_list[0])
    op = input_list[1]
    b = int(input_list[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):

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

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

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

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

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

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

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

Solution (Python):
ans = []
for s in open(0).readlines():
    if "?" in s:
        break
    ans.append(eval(s.strip().replace("/", "//")))
print(*ans, sep='\n')

Solution (Python):
import math


def main():
    while True:
        a, op, b = input().split()
        if op == '?':
            break
        print(math.floor(eval(a + op + b)))


main()

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

Solution (Python):
x = str(input())

while 0 == x.count("?"):
    print(int(eval(x)))
    x = str(input())

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

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

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

Solution (Python):
while True:
    a, op, b = input().split()
    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):
a, op, b = [x for x in 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 == '/' and b != '0':
        print(int(a) // int(b))
    a, op, b = [x for x in input().split()]

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

Solution (Python):
def add(lhs: int, rhs: int) -> int:
    return lhs + rhs


def sub(lhs: int, rhs: int) -> int:
    return lhs - rhs


def multiply(lhs: int, rhs: int) -> int:
    return lhs * rhs


def divide(lhs: int, rhs: int) -> int:
    return int(lhs / rhs)


op_map = {'+': add, '-': sub, '*': multiply, '/': divide}

while True:
    in_str = input()
    a, op, b = in_str.split()
    if op == '?':
        exit()
    a = int(a)
    b = int(b)
    ans = op_map[op](a, b)
    print(ans)

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

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

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

Solution (Python):
import math
for i in range(10**9+7) :
    a,op,b = map(str,input().split())
    if op == "?" : break
    a = int(a)
    b = int(b)
    if op == "+" : print(a+b)
    elif op == "-" : print(a-b)
    elif op == "*" : print(a*b)
    else : print(math.floor((a/b)))

Solution (Python):




import math
while 1:
    a,b,c = map(str,input().split())
    a = int(a)
    c = int(c)
    ans = 0
    if b == "?":
        break
    if b == "+":
        ans = a + c
    if b == "-":
        ans = a - c
    if b == "/":
        ans = int(a / c)
    if b == "*":
        ans = a * c
    print(ans)

Solution (Python):
while True:
    t = input().split()
    a = int(t[0])
    op = t[1]
    b = int(t[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 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))
    else:
        print('%d' %(int(a) // int(b)))

Solution (Python):
import sys
import operator

for line in sys.stdin:
    a, op, b = line.strip().split()

    if op == '?':
        break

    a, b = map(int, [a, b])
    op = {
        '+': operator.add,
        '-': operator.sub,
        '*': operator.mul,
        '/': operator.floordiv
    }[op]

    print(op(a, b))

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

Solution (Python):
while True:
    n = input().split()
    a = int(n[0])
    op = n[1]
    b = int(n[2])
    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:
    line = input()
    if "?" in line:
        break
    lst = line.split()
    
    if lst[1] == "+":
        print(int(lst[0])+int(lst[2]))
    elif lst[1] == "-":
        print(int(lst[0])-int(lst[2]))
    elif lst[1] == "*":
        print(int(lst[0])*int(lst[2]))
    elif lst[1] == "/":
        print(int(lst[0])//int(lst[2]))

Solution (Python):
while True:
    a,op,b = [i for i in input().split()]
    a = int(a)
    b = int(b)

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

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

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

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

    elif op == "?"       :
        break

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

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

Solution (Python):
while True:
    line = input()
    if line.find('?') != -1:
        break
    line = line.replace('/','//')
    exec('print('+line+')')

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

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

    if op == '?':
        break

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

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

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

Solution (Python):
def wa(a,b,output):
    output=a+b
    return output

def sa(a,b,output):
    output=a-b
    return output

def seki(a,b,output):
    output=a*b
    return output

def syou(a,b,output):
    output=a//b
    return output

num=list(map(str,input().split()))
out=[]
while num[1]!="?":
    output=0
    a=int(num[0])
    b=int(num[2])

    if num[1]=="+":
        output=wa(a,b,output)
    elif num[1]=="-":
        output=sa(a,b,output)
    elif num[1]=="*":
        output=seki(a,b,output)
    elif num[1]=="/":
        output=syou(a,b,output)
    out.append(output)
    num=list(map(str,input().split()))

for i in range(len(out)):
    print(out[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)
    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)
    elif op == "?" :
        break

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