Problem:
Simple Calculator Write a program which reads two integers a , b and an operator op , and then prints the value of a  op  b . The operator op is '+', '-', '*' or '/' (sum, difference, product or quotient). The division should truncate any fractional part. Input The input consists of multiple datasets. Each dataset is given in the following format.  a  op  b  The input ends with a dataset where op = '?'. Your program should not process for this dataset. Output For each dataset, print the value in a line. Constraints  0 ≤ a , b ≤ 20000  No divisions by zero are given.  Sample Input 1 1 + 2
56 - 18
13 * 2
100 / 10
27 + 81
0 ? 0 Sample Output 1 3
38
26
10
108

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

Solution (Python):
while True:
    a, op, b = tuple(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):
s = input()
while '?' not in s.split()[1]:
    print(eval(''.join(s.replace('/', '//'))))
    s = input()

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

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

    if op == '?':
        break
    elif op == '+':
        print(x + y)
    elif op == '-':
        print(x - y)
    elif op == '*':
        print(x * y)
    elif op == '/':
        print(x // y)

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

Solution (Python):
import math


while True:
    line = input()
    element = line.split(' ')
    a = int(element[0])
    b = int(element[2])
    op = element[1]
    if op == '?':
        break
    elif op == '+':
        print(a + b)
    elif op == '-':
        print(a - b)
    elif op == '*':
        print(a * b)
    elif op == '/':
        print(math.floor(a / b))

Solution (Python):
import sys
def evaluate(s):
    a,op,b = s.split()
    a=int(a)
    b=int(b)
    if op=='+':
        return a+b
    if op=='-':
        return a-b
    if op=='*':
        return a*b
    if op=='/':
        return a//b
    if op=='?':
        sys.exit(0)

while True:
    s =input()
    print(evaluate(s))

Solution (Python):
n = "kksohandsome"
while (n != "0 ? 0"):
    n = input()
    if ('?' in n):break
    print(int(eval(n)))

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

    if '?' == op:
        break

    ans = 0

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

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

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

Solution (Python):
if __name__ == "__main__":
    while True:
        variables = input().split(" ")
        a = int(variables[0])
        op = variables[1]
        b = int(variables[2])

        if (op == '?'):
            break

        if ('+' == op):
            print(f"{a + b}")
        elif ('-' == op):
            print(f"{a - b}")
        elif ('*' == op):
            print(f"{a * b}")
        elif ('/' == op):
            print(f"{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):
op = 0
while op != "?":
    a,op,b = 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 = int(a / b)
    elif op == "?":
        break
    print(ans)

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

    a, b = int(li[0]), int(li[2])
    op = li[1]
    
    if op == '?':
        break
    
    if op == "+":
        ans = a + b
    elif op == "-":
        ans = a - b
    elif op == "*":
        ans = a * b
    elif op == "/":
        ans = a // b
        
    print(ans)

Solution (Python):
while True:
    a,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)
    else:
        print(a//c)

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



def calculater(a, b, key):
    a = int(a)
    b = int(b)
    if key == '+':
        Answer = a + b
    elif key =='-':
        Answer = a - b
    elif key == '*':
        Answer = a * b
    elif key == '/':
        Answer = a //b
    return Answer
for _ in range(100):
    a, key, b = input().split()
    if key == '?':
        break
    else:
        Answer = calculater(a, b, key) 
        print(Answer)

Solution (Python):

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

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

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

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

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

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

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

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

    if op == "+":
        c = a + b
        print("{0}".format(c))
    elif op == "-":
        c = a - b
        print("{0}".format(c))
    elif op == "*":
        c = a * b
        print("{0}".format(c))
    elif op == "/":
        c = int(a / b)
        print("{0}".format(c))
    elif op == "?":
        break

Solution (Python):
while True:
    [x,op,y]=input().split(" ")
    if op == "?":
        break
    
    a=int(x)
    b=int(y)

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

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

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

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

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

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

    if op == '?':
        break

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

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

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


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

Solution (Python):
array = []
while True:
	LIST = []
	INPUT = [ n for n in input().split()]
	a = int(INPUT[0])
	opperant = INPUT[1]
	b = int(INPUT[2])
	if opperant == '?':
		break
		
	LIST.append(a)
	LIST.append(opperant)
	LIST.append(b)
	array.append(LIST)
	
	 
for i in range(len(array)):
	 	
	if array[i][1] == '+':
		print(array[i][0] + array[i][2])
	 
	elif array[i][1] == '-':
		print(array[i][0] - array[i][2])
	 	
	elif array[i][1] == '*':
		print(array[i][0] * array[i][2])
	 	
	else:
		print(int(array[i][0] / array[i][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)
    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("%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,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())
  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()
    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()
    A,B = map(int,[A,B])
    if op == "+":
        print(A + B)
    elif op == "-":
        print(A - B)
    elif op == "*":
        print(A * B)
    elif op == "/":
        print(A // B)
    else:
        break

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

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

    if op == '?':
        break

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

Solution (Python):

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

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

    a = int(table[0])
    b = int(table[2])
    op = table[1]
    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)
	if op == "-":
		print(a-b)
	if op == "*":
		print(a*b)
	if op == "/":
		print(a//b)

Solution (Python):

while True:
    L=input().split( )
    a=int(L[0])
    b=int(L[2])
    op=L[1]
    if op =="?":
        break
    elif op =="+":
            print(f"{a+b}")

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

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

Solution (Python):


from collections import* 
from fractions import gcd
from functools import* 
from itertools import* 
from operator import mul
from bisect import* 
from heapq import* 
from math import factorial,pi
from copy import deepcopy
import sys

sys.setrecursionlimit(10**6)


def main():
    while True:
        s=input()
        if "?" in s:
            break
        else:
            print(int(eval(s)))
    
    
if __name__ == '__main__':
    main()

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)
    else:
        raise ValueError(a, op, 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:
    list_calc = input().split()
    if "?" in list_calc:
        exit()
    elif "-" in list_calc:
        print(int(list_calc[0]) - int(list_calc[-1]))
    elif "*" in list_calc:
        print(int(list_calc[0]) * int(list_calc[-1]))
    elif "/" in list_calc:
        print(int(int(list_calc[0]) / int(list_calc[-1])))
    elif "+" in list_calc:
        print(int(list_calc[0]) + int(list_calc[-1]))

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

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

Solution (Python):
while True:
    a, op , b = input().split()
    if op == '?':
        break
    a = int(a); b = int(b)
    print(int(eval(f'{a} {op} {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:
    try:
        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)
        else:
            print(a // b)
    except EOFError as err:
        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):
a_list=[]
op_list=[]
b_list=[]
while True:
  a, op, b = input().split()
  if op == '?':
    break
  a = int(a)                   
  b = int(b)
  a_list.append(a)
  op_list.append(op)
  b_list.append(b)
  
for (alist, oplist, blist) in zip(a_list, op_list, b_list):
  if oplist == '+': 
       print(alist+blist)
  elif oplist == '-':
       print(alist-blist)
  elif oplist == '*':
       print(alist*blist)
  elif oplist == '/':
       print(alist//blist)

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

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

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

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

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

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

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

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

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

Solution (Python):

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

Solution (Python):
import math


def main():

    while True:
        
        args = input().split(' ')

        num1 = int(args[0])
        num2 = int(args[2])
        op = args[1]

        if op == '?':
            break
        elif op == '+':
            print(num1 + num2)
        elif op == '-':
            print(num1 - num2)
        elif op == '*':
            print(num1 * num2)
        else:
            print(math.floor(num1 / num2))


if __name__ == "__main__":
    main()

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

    a = int(List[0])
    op = List[1]
    b = int(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):
a,op,b=input().split()
a,b=int(a),int(b)
t = 0
ans = 0
while op != "?":

	if op == "+":
		ans = a+b
	elif op == "-":
		ans = a-b
	elif op == "*":
		ans = a*b
	elif op == "/":
		ans = a//b

	print("{}".format( ans ))
	t+=1
	a,op,b=input().split()
	a,b=int(a),int(b)

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

Solution (Python):
if __name__ == '__main__':
	a,op,b = map(str, input().split())
	while op != '?':
		if op == '+':
			print("%d" % (int(a)+int(b)))
		elif op == '-':
			print("%d" % (int(a)-int(b)))
		elif op == '*':
			print("%d" % (int(a)*int(b)))
		elif op == '/':
			print("%d" % (int(a)/int(b)))
		a,op,b = map(str, input().split())

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

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

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

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