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



Sample input:
1 + 2
56 - 18
13 * 2
100 / 10
27 + 81
0 ? 0


Sample output:
3
38
26
10
108

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
while True:
    a, op , b = input().split()
    if op == '?':
        break
    a = int(a); b = int(b)
    print(int(eval(f'{a} {op} {b}')))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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]))

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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())

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
###
### atcorder test program
###

### math class
class math:
    ### pi
    pi = 3.14159265358979323846264338

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

math = math()

### input num
#i = input()
#A, op, B = [x for x in i.split()]
#R = float(input())
#A = [int(x) for x in input().split()]

#print("{0} {1} {2:.5f}".format(A//B, A%B, A/B))

#print("{0:.6f} {1:.6f}".format(R*R*math.pi,R*2*math.pi))

while True:
    ans = 0
    i = input()
    A, op, B = [x for x in i.split()]

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

    print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
while True:
    x = input()
    list = x.split()
    [a, op, b] = list
    a = int(a)
    b = int(b)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:
    x,p,y = input().split()
    x = int(x)
    y = int(y)
    
    if p=="+": 
        cal = x+y
    elif p=="-":
        cal = x-y
    elif p=="/":
        cal = int(x/y)
    elif p=="*":
        cal = x*y
    elif p=="?":
        break
    else:
        continue
    print(cal)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
while True:
    items = input().split()
    if items[1] == '?':
        break
    if items[1] == '+':
        sum = int(items[0]) + int(items[2])
        print(sum)
    elif items[1] == '-':
        dif = int(items[0]) - int(items[2])
        print(dif)
    elif items[1] == '*':
        prod = int(items[0]) * int(items[2])
        print(prod)
    elif items[1] == '/':
        quot = int(items[0]) // int(items[2])
        print(quot)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
# ITP1_4_C
# 計算機

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

Submission status: Accepted

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

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

Submission status: Accepted

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

    if op =="?":
        break

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

    if op == '?':
        break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
while True:
    try:
        a, op, b = map(str, input().split())
        a = int(a)
        b = int(b)
        if op == '+':
            print(a+b)
        elif op == '-':
            print(a-b)
        elif op == '*':
            print(a*b)
        elif op == '/':
            print(a//b)
        elif op == '?':
            break;
    except:
        break;

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    if op == '+':
        print(a+b)
    if op == '-':
        print(a-b)
    if op == '*':
        print(a*b)
    if op == '/':
        w = math.floor(a/b)
        print(w)
    if op == '?':
        break

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
while True:
    x,op,y = map(str,input().split())
    if x == 0 and y == 0:
        break

    if op == "+":
        print (int(x)+int(y))
    elif op == "-":
        print (int(x)-int(y))
    elif op == "*":
        print (int(x)*int(y))
    elif op == "/":
        print (int(x)//int(y))
    else:
        break

Submission status: Accepted

Solution code:
while True:
    s = input().rstrip().split()
    if '+' in s:
        print(int(s[0])+int(s[2]))
    elif '-' in s:
        print(int(s[0])-int(s[2]))
    elif '*' in s:
        print(int(s[0])*int(s[2]))
    elif '/' in s:
        print(int(s[0])//int(s[2]))
    elif '?' in s:
        break

Submission status: Accepted

Solution code:
while 1:
        table = input().split()
        a = int(table[0])
        op = table[1]
        b = int(table[2])

        if op =='?':
                break

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
while 1:

    # input を分割する
    input_list = input().split()

    # input をそれぞれの変数に格納する
    a = int(input_list[0])
    op = input_list[1]
    b = int(input_list[2])
    
    if op == "?":
        break
    elif op == "+":
        print("%d"%(a+b))
    elif op == "-":
        print("%d"%(a-b))
    elif op == "*":
        print("%d"%(a*b))
    elif op == "/":
        print("%d"%(a/b))

Submission status: Accepted

Solution code:
# coding: utf-8
while True:
    line = input().rstrip().split()
    a = int(line[0])
    op = line[1]
    b = int(line[2])
    if op == '?':
        break
    elif op == '+':
        print(a+b)
    elif op == '-':
        print(a-b)
    elif op == '*':
        print(a*b)
    else:
        print(a//b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while 1:
    x = input().split()
    a = int(x[0])
    b = int(x[2])
    op = x[1]
    if op == "+":
        c = a+b
        print(c)
    elif op == "-":
        d = a-b
        print(d)
    elif op == "*":
        e = a*b
        print(e)
    elif op == "/":
        f = a//b
        print(f)
    elif op == "?":
        break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math


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


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
x = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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