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):
import math
while True:
    a,b,c=input().split()
    a=int(a)
    c=int(c)
    if b == "+":
        print("{}".format(a+c))
    elif b == "-":
        print("{}".format(a-c))
    elif b == "*":
        print("{}".format(a*c))
    elif b == "/":
        print("{}".format(a//c))
    else:
        break

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

Solution (Python):
import operator

ops = { "+": operator.add,
        "-": operator.sub,
        "/": operator.floordiv,
        "*": operator.mul}

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

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

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

Solution (Python):
l = []
while True:
  a, op, b = list(map(str, input().split(' ')))
  a, b = [int(a), int(b)]
  ans = 0
  if op == '?':
    break
  if op == '+':
    ans = a + b
  if op == '-':
    ans = a - b
  if op == '/':
    ans = int(a / b)
  if op == '*':
    ans = a * b
  l.append(ans)
for n in l:
  print(n)

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

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(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):
import math
while True:
    a,b,c=input().split()
    if b=="+":
        print("{}".format(int(float(a))+int(float((c)))))
    elif b=="*":
        print("{}".format(int(a)*int(c)))
    elif b=="-":
        print(int(a)-int(c))
    elif b=="/":
        print(math.floor(int(a)/int(c)))
    elif b=="?":
        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:
    array = input().strip().split()
    x=int(array[0])
    y=int(array[2])
    if array[1]=="+":
        z=x+y
    elif array[1]=="*":
        z=x*y
    elif array[1]=="-":
        z=x-y
    elif array[1]=="/":
        z=x//y
    else:
        break
    print(z)

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:
    codes  = input().split()
    a,op,b = int(codes[0]), codes[1], int(codes[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):
result = 0

while True:
  val1, symbol, val2 = map(str,input().split())
  if symbol == "?":
    break
  elif symbol == "+":
    result = int(val1) + int(val2) 
  elif symbol == "-":
    result = int(val1) - int(val2)
  elif symbol == "*":
    result = int(val1) * int(val2)
  elif symbol == "/":
    result = int(val1) // int(val2)
  print(result)

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

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

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

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

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


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

Solution (Python):
inp = []
i = 0
j = 0

while True:
    inp.append(input().split())
    if inp[i][1] == "?":
        break
    i += 1

for j in range(i):
    if inp[j][1] == "+":
        print("%s" % (int(inp[j][0]) + int(inp[j][2])))
    elif inp[j][1] == "-":
        print("%s" % (int(inp[j][0]) - int(inp[j][2])))
    elif inp[j][1] == "*":
        print("%s" % (int(inp[j][0]) * int(inp[j][2])))
    elif inp[j][1] == "/":
        print("%d" % (int(inp[j][0]) / int(inp[j][2])))
    elif inp[j][1] == "%":
        print("%s" % (int(inp[j][0]) % int(inp[j][2])))
    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:
    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
    else:    
        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=input()
 if'?'in a:break
 print(int(eval(a)))

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):
def LI():return map(int,input().split())
def I(): return input().split()
while(True):
    a,op,b=I()
    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(1):
    a,op,b=input().split()
    if(op=="?"):
        break
    if(op=="+"):
        print(int(a)+int(b))
    elif(op=="-"):
        print(int(a)-int(b))
    elif(op=="*"):
        print(int(a)*int(b))
    else:
        print(int(a)//int(b))

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


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

Solution (Python):
list = []
count = 0
flag = True

while flag:
    a,op,b=input().split()
    list.append((int(a),op,int(b)))
    if list[count][1]== "?":
        flag = False
    count += 1

for i in range(count):
    if list[i][1] == "+":
        print(list[i][0] + list[i][2])
    elif list[i][1] == "-":
        print(list[i][0] - list[i][2])
    elif list[i][1] == "*":
        print(list[i][0] * list[i][2])
    elif list[i][1] == "/":
        print(int(list[i][0] / list[i][2]))
        

"""
1 + 2
3 / 3
100 ? 100
"""

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

Solution (Python):


def main():
    while True:
        a,op,b = 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))

if __name__=="__main__":
    main()

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

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

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

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

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


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

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

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

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

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

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

Solution (Python):

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

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

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

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

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

Solution (Python):


while True:
    s=input()
    sep_li=s.split()
    a=int(sep_li[0])
    b=int(sep_li[2])
    op=sep_li[1]
    if b== "?":
        n+= 1
    elif 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

for line in sys.stdin:
  a, op, b = line.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
    else: 
        if op=="+":
            print(a+b)
        elif op=="-":
            print(a-b)
        elif op=="*":
            print(a*b)
        elif op=="/":
            print(a//b)

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

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


    if op=="?": 
        break
    else:

        if op=="+":

            print(a+b)

        elif op=="-":

            print(a-b)

        elif op=="*":

            print(a*b)

        elif op=="/":

            print(a//b)

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


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

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

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

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

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


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

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


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

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

Solution (Python):
while True:
    a,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:
    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
    else:    
        if op=="+":
            print(a+b)
        elif op=="-":
            print(a-b)
        elif op=="*":
            print(a*b)
        elif op=="/":
            print(a//b)

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

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

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

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

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

        elif op=="/":
              import math
              print(math.floor(a/b))
        else:
          print()

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

Solution (Python):
while True:
    A, op, B = input().split()
    A = int(A)
    B = int(B)

    if op == "+":
        print(int(A + B))
    elif op == "-":
        print(int(A - B))
    elif op == "*":
        print(int(A * B))
    elif op == "/":
        print(int(A / B))
    elif op == "?":
        break

Solution (Python):
while True:
    A, op, B = input().split()
    A = int(A)
    B = int(B)

    if op == "+":
        print(int(A + B))
    elif op == "-":
        print(int(A - B))
    elif op == "*":
        print(int(A * B))
    elif op == "/":
        print(int(A / B))
    elif op == "?":
        break

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


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

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


    if op=="?": 
        break
    else:    
        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=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:
    s = input()
    if "?" in s:
        break
    print(int(eval(s)))

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

Solution (Python):
op = "G"
while op != "?" :
    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(int(a)/int(b)))
    else: pass

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