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

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

Solution (Python):
import math
while True:
  a, x, b = input().split()
  a = int(a)
  b = int(b)
  if x == "+":
    print(a+b)
  elif x == "-":
    print(a-b)
  elif x == "/":
    print(math.floor(a/b) )
  elif x == "*":
    print(a*b)
  else:
    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):
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 = 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:
    list = input().split()

    a = int(list[0]); b = int(list[2])
    op = list[1]
    if op == "?":
        break

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

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

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

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

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

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

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

Solution (Python):
OP = {'+': lambda a,b: a+b, '-': lambda a,b: a-b, '*': lambda a,b: a*b, '/': lambda a,b: a//b}

while True:
    a, op, b = [s for s in input().split()]
    if op == '?':
        break
    print(OP[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 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)
    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)
    elif op == '/':
        print(a // b)

Solution (Python):
while True:
    a, op, b = input().split()
    a, b = [int(x) for x in [a, b]]
    
    if op == "+":
        print(f"{a+b}")

    elif op == "-":
        print(f"{a-b}")

    elif op == "*":
        print(f"{a*b}")

    elif op == "/":
        print(f"{a//b}")

    else:
        break

Solution (Python):



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

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

Solution (Python):

while True:
    i = input()
    if "?" in i:
        break
    print(int(eval(i)))

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

Solution (Python):


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

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

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

Solution (Python):
import sys

lines = [line.strip().split() for line in sys.stdin.readlines() if line != "\n"]

for line in lines:
    c = int(line[0])
    d = int(line[2])
    op = line[1]

    if op == "+":
        print(c + d)
    elif op == "-":
        print(c - d)
    elif op == "*":
        print(c * d)
    elif op == "/":
        print(c // d)
    else:
        pass

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):
import math
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(math.floor(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):
for x in range(300):
    a, b,c = input().split()
    if b=='?' : break
    a,c=int(a),int(c)
    if b=='+':
        print(a+c)
    elif b=='-' :
        print(a-c)
    elif b=='*':
        print(a*c)
    else :
        print(a//c)

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

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

Solution (Python):


while True:
    a,op,b = (x for x in input().strip().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 == "?":
        exit()

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):
def culc(a, b, op):
    if op == '+':
        return a + b
    elif op == '-':
        return a - b
    elif op == '*':
        return a * b
    else:
        try:
            return a // b
        except:
            return 'error:zerodivision'


while True:
    data = input().split()
    a = int(data[0])
    b = int(data[2])
    if '?' in data:
        break
    print(culc(a, b, data[1]))

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

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

    if op == '+':
        result.append(a + b)
    elif op == '-':
        result.append(a - b)
    elif op == '*':
        result.append(a * b)
    elif op == '/':
        result.append(a // b)
    elif op == '?':
        break
for i in result:
    print(i)

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

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

Solution (Python):
l = []
i = 0
j = 0
while True:
  l.append(input().split())
  if l[i][1] == '?':
    break
  i += 1

for i in l[:-1]:
  if l[j][1] == '+':
    print(int(l[j][0]) + int(l[j][2]))
  elif l[j][1] == '-':
    print(int(l[j][0]) - int(l[j][2]))
  elif l[j][1] == '*':
    print(int(l[j][0]) * int(l[j][2]))
  elif l[j][1] == '/':
    print(int(l[j][0]) // int(l[j][2]))
  j += 1

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 == '+':
        print(a + b)
    if op == '-':
        print(a - b)
    if op == '*':
        print(a * b)
    if op == '/':
        print(int(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):
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):
MAX = 20000
END = '?'
counter = 0
while counter < MAX:
  a, op, b = input().split() 
  if op == END:
    break
  a=int(a)
  b=int(b)
  if op=='+':
    print(a+b)
  elif op=='-':
    print(a-b)
  elif op=='*':
    print(a*b)
  else:
    print(int(a/b))

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

Solution (Python):
import sys
from itertools import combinations
import math


def I(): return int(sys.stdin.readline().rstrip())


def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))


def S(): return sys.stdin.readline().rstrip()


def LS(): return list(sys.stdin.readline().rstrip().split())


while 1:
    a = LS()
    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):
import sys
import math

for e in sys.stdin:
    a, op, b = e.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(math.floor(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):
i=0

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

Solution (Python):
while True:
    a, op, b = list(map(str, 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(int(ans))

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

Solution (Python):
while True:
    a,op,b=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(int(a/b))

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

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=map(str,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))
    elif op == "/":
        print(int(a/b))
    else:
        break

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

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

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

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

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

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

for l in sys.stdin:
    aa, opo, bb = l.split()

    if opo == "?":
        break

    a.append(aa)
    op.append(opo)
    b.append(bb)

for i, num in enumerate(a):
    if op[i] == "+":
        print(int(a[i]) + int(b[i]))
    elif op[i] == "-":
        print(int(a[i]) - int(b[i]))
    elif op[i] == "*":
        print(int(a[i]) * int(b[i]))
    elif op[i] == "/":
        print(int(a[i]) // int(b[i]))

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

Solution (Python):
while True:
    a, op, b = (x for x in 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):
while True:
    s = input()
    if "?" in s:
        break
    elif "/" in s:
        s = s.replace("/","//")
    print(eval(s))

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

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

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

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

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

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

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

Solution (Python):
import sys

input = sys.stdin.readline

def main():
    while True:
        s = input().split()
        if s[1] == '+':
            print(int(s[0]) + int(s[2]))
        
        elif s[1] == '-':
            print(int(s[0]) - int(s[2]))
        
        elif s[1] == '*':
            print(int(s[0]) * int(s[2]))
        
        elif s[1] == '/':
            print(int(int(s[0]) / int(s[2])))
        
        else:
            sys.exit()
    
if __name__ == "__main__":
    main()

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

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

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

Solution (Python):
import re

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


EOL = re.compile(r'^\w+\s\?\s\w+$')
MAX = 20000

for _ in range(MAX):
  line = input()
  if EOL.match(line):
    break
  
  
  a, op, b = line.split()
  print(calc(op, int(a), int(b)))

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

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

Solution (Python):


def get_op():

    line_list=[]
    
    while True:
        s1,op,s2=tuple(input().split())
        
        x=int(s1)
        y=int(s2)
        
        if op=="?":
            break
        
        line_list.append((x,op,y))
    
    return line_list
    
def apply_op(line_list):
    ls=[]
    
    for x,op,y in line_list:
        if op=="+":
            ls.append(x+y)
        elif op=="-":
            ls.append(x-y)
        elif op=="*":
            ls.append(x*y)
        elif op=="/":
            ls.append(int(x/y))
        else:
            pass


    return ls
    


ls=get_op()
result=apply_op(ls)
    
    
for i in result:
    print(i)

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

    if op == '?':
        break

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

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