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

Solution (Python):
while True:
    s = input()
    s = s.replace('/', '//')
    if "?" in s:
        break
    else:
        print(eval(s))

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

    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 == "?":
        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):
s=[]
while True:
    tmp=list(map(str,input().split()))
    if tmp[1]=="?":
        break
    else:
        s.append(tmp)

for i in range(len(s)):
    a,b=int(s[i][0]),int(s[i][2])
    op=s[i][1]
    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()
    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
    elif op == "+" :
        print(a + b)
    elif op == "-" :
        print(a - b)
    elif op == "/" :
        print(int(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)
    if op == "-":
        print(a - b)
    if op == "*":
        print(a * b)
    if op == "/":
        print(a // b)

Solution (Python):
import math

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

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

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

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

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

Solution (Python):
while True:
    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):
import math

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

    if op == "?":
        break

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

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

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

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

Solution (Python):
import math

op = ""
while True:
    s = input().split()

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

    ans = ""
    if op == "?":
        break
    elif op == "+":
        ans = a + b
    elif op == "-":
        ans = a - b
    elif op == "*":
        ans = a * b
    elif op == "/":
        ans = math.floor(a / b)

    print(ans)

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

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

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

Solution (Python):
while True:
    a, op, b = input().split()
    a, b = map(int, [a, 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 = input()
    if '?' in a:
        break
    print("%d" % eval(a))

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

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

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

for ele in l:
  print(ele)

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

Solution (Python):
while True:

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

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

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):
    var=input()
    var=var.split()
    a=int(var[0])
    b=int(var[2])
    op=str(var[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):
for i in range(20000):
    S = input().split()
    if S[1] == "?":
        exit()
    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(S[0])*int(S[2]))
    elif S[1] == "/":
        print(int(S[0])//int(S[2]))

Solution (Python):
import sys
while True:
    a, op, b = map(str, input().split())
    if op == '?':
        sys.exit()
    if op == '/':
        op = '//'
    f = a + op + b
    print(eval(f))

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

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

Solution (Python):





def main():
    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:
            pass


if __name__ == '__main__':
    main()

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

Solution (Python):
while True:
    x, op, y = input().split()
    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)
    elif op=='?':
        break

Solution (Python):
cal = []
cals = []

while True:
    cal =list(map(str, input().split()))
    if cal[1] == "?":
        break
    cals.append(cal)

for i in range(len(cals)):
    cal = cals[i]
    a = int(cals[i][0])
    b = int(cals[i][2])
    op = cals[i][1]
    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(int(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)
    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, 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):
for i in range(10000):
  stra,op,strb=input().split()
  a=int(stra)
  b=int(strb)

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

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

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

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

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

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

    else:
        exit()

Solution (Python):
op = None
while(True):
    a, op, b = [x for x in input().split()];
    ans=0
    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
    else :break
    print(ans)

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

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

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

Solution (Python):
XS = open(0).read().split()
for i in range(0, len(XS), 3):
    a = XS[i + 0]
    op = XS[i + 1]
    b = XS[i + 2]
    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)
    else:
        print("?")

Solution (Python):
while True:
    arr = input().split()
    x = int(arr[0])
    op = arr[1]
    y = int(arr[2])
    if op == '+':
        print(f'{x+y}')
    elif op == '-':
        print(f'{x-y}')
    elif op == '*':
        print(f'{x*y}')
    elif op == '/':
        print(f'{x//y}')
    else:
        break

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

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

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

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

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

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)
    elif op == '?': break

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

Solution (Python):

 
while True:
  a,op,b=map(str,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(int(a/b))
  if op=='?':
    break

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

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

    a, op, b = input().split()
    a = int(a)
    b = 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)
  elif op=='?':
    exit()

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

Solution (Python):
while True:

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

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

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

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):
ls = []
ans = 0
while 1:
    ls1=(list(map(str,input().split())))
    if ls1[1] == "?":
        break
    else:
        ls.append(list(ls1))
        ls1.clear()
for i in range(len(ls)):
    if ls[i][1] == "+":
        ans = int(ls[i][0])+int(ls[i][2])
        print(ans)
    elif ls[i][1] == "-":
        ans = int(ls[i][0])-int(ls[i][2])
        print(ans)
    elif ls[i][1] == "*":
        ans = int(ls[i][0])*int(ls[i][2])
        print(ans)
    elif ls[i][1] == "/":
        ans = int(ls[i][0])//int(ls[i][2])
        print(ans)

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().split()
    a,op,b = int(s[0]),s[1],int(s[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 == '+':
        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 == '?':
        exit()

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

Solution (Python):
import sys


def calc(a: int, op: str, b: int) -> int:
    if op == '+':
        return a + b
    if op == '-':
        return a - b
    if op == '*':
        return a * b
    return int(a / b)

def resolve():
    for line in sys.stdin:
        a, op, b = map(str, line.split())
        a = int(a)
        b = int(b)

        if op == '?':
            break

        
        print(calc(int(a), op, int(b)))


resolve()

Solution (Python):
data = []
while True :
    l = input()
    data.append(l)
    if "?" in l :
        data.pop()
        break

for i in data :
    print(int(eval(i)))

Solution (Python):
for i in range (10000):
    a,op,b=input().split()
    if op == "?":
        break
    a=int(a)
    b=int(b)
    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)
    if op=="-":
        print(a-b)
    if op=="*":
        print(a*b)
    if op=="/":
        print(a//b)

Solution (Python):
while True:

    dataset = input().split(" ")

    a = int(dataset[0])
    op = dataset[1]
    b = int(dataset[2])
    sum = 0
    
    if op == "?":
        break
    elif op == "+":
        sum = a + b
    elif op == "-":
        sum = a - b
    elif op == "*":
        sum = a * b
    elif op == "/":
        sum = int(a / b)

    print(sum)