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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys,math

def solve():
    while True:
        s = input()
        if s == "0 ? 0":
            break
        else:
            print(int(eval(s)//1))
    
solve()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Solution code:
from sys import stdin

while True:
    a, op, b = stdin.readline().rstrip().split()
    else if op == "+":
        print(int(a)+int(b))
    else if op == "-":
        print(int(a)-int(b))
    else if op == "*":
        print(int(a)*int(b))
    else if op == "/":
        print(int(a)//int(b))
    else: # op == "?"
        break

Submission status: Runtime Error

Solution code:
from sys import stdin

while True:
    a, op, b = stdin.readline().rstrip().split()
    else if op == '+':
        print(int(a)+int(b))
    else if op == '-':
        print(int(a)-int(b))
    else if op == '*':
        print(int(a)*int(b))
    else if op == '/':
        print(int(a)//int(b))
    else: # op == '?'
        break

Submission status: Runtime Error

Solution code:
a,op,b = [float(i) for i in input().split()]
if op == "?":
    break
else:
    if op == "+":
        ans = a + b
    elif op == "-":
        ans = a-b
    elif op == "*":
        ans = a * b
    else:
        rem = a%b
        if rem == 0:
            ans = a/b
        else:
            ans = int(a/b)
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

while True:
	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: Runtime Error

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

a,b = int(a),int(b)
'''
###############################################################
#whileの中に入れないと同じデータセットでの計算をずっとし続ける#
###############################################################

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: Runtime Error

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

a,b = int(a),int(b)
'''
###############################################################
#whileの中に入れないと同じデータセットでの計算をずっとし続ける#
###############################################################

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: Runtime Error

Solution code:
while True:
    a, op, b = input().split()  # 3変数ともに文字列として読み込む
    a = int(a)  # a を整数に変換
    b = int(b)  # b を整数に変換
    if op == ?:
        break
    else:
        print(f'a op b')

Submission status: Runtime Error

Solution code:
while True:
    a,op,b=map(istr,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))

Submission status: Runtime Error

Solution code:
x = input().split()
a = int(x[0])
op = x[1]
b = int(x[2])
for i in I:
  if op == "+":
    A = a + b
    prnit(A)
  elif op == "-":
    B = a - b
    print(B)
  elif op == "*":
    C = a * b
    print(C)
  elif op == "/":
    D = a // b
    print(D)
  elif op == "?":
    break

Submission status: Runtime Error

Solution code:
import math

data = input().split()
a = int(data[0])
b = data[1]
c = int(data[2])

ans = []
while True:
	if b == '+':
		ans += a+c
	elif b == '-':
		ans += a-c
	elif b == '*':
		ans += a*c
	elif b == '/':
		ans += math.floor(a/c)
	elif b == '?':
		break
	else:
		break

for output in ans:
	print(output)

Submission status: Runtime Error

Solution code:
import math

data = input().split()
a = int(data[0])
b = data[1]
c = int(data[2])

ans = []
while True:
	if b == '+':
		ans += a+c
	elsif b == '-':
		ans += a-c
	elsif b == '*':
		ans += a*c
	elsif b == '/':
		ans += math.floor(a/c)
	elsif b == '?':
		break
	else:
		break

for output in ans:
	print(output)

Submission status: Runtime Error

Solution code:
while(True){
    f = input()
    s = f.split()
    if s[1] == '?':
        break
    print(eval(f))
}

Submission status: Runtime Error

Solution code:
while(True):
    f = input()
    s = f.split()
    if(s[1] == '?'):
        break
    if(s[1] = '/'):
        print((int)(s[0]) // (int)(s[1]))
    else:
        print(eval(f))

Submission status: Runtime Error

Solution code:
while(True):
    f = input()
    s = f.split()
    if(s[1] == '?'):
        break
    if(s[1] == '/'):
        print((int)(s[0]) // (int)(s[1]))
    else:
        print(eval(f))

Submission status: Runtime Error

Solution code:
a=input()
while a!="0 ? 0":
    print(int(eval(a)))
    a=input()

Submission status: Runtime Error

Solution code:
a=input()
while a[2]!=""?"0 ? 0""":
    print(eval(a))
    a=input()

Submission status: Runtime Error

Solution code:
a=input()
while a[2]!="?":
    print(int(eval(a)))
    a=input()

Submission status: Runtime Error

Solution code:
a=input()
while a[2]!="?":
    print(eval(a.strip().replace("/", "//")))
    a=input()

Submission status: Runtime Error

Solution code:
listA=[]
listOP=[]
listB=[]
count=0
while True:
    a,op,b=input().split()
    listA.append(int(a))
    listOP.append(op)
    listB.append(int(b))
    if a=="0" and op=="?" and b=="0":
        del listA[len(listA)-1]
        del listOP[len(listOP)-1]
        del listB[len(listB)-1]
        break
#入力パートここまで。計算出力パートここから
while count<=len(listA)-1:
    if listOP[count]=="+":
        print(listA[count]+listB[count])
    elif listOP[count]=="-":
        print(listA[count]-listB[count])
    elif listOP[count]=="*":
        print(listA[count]*listB[count])
    elif listOP[count]=="/":
        print(listA[count]//listB[count])
    else:
        print("ERROR")
    count+=1

Submission status: Runtime Error

Solution code:
i = 100
for i in range (i):
    a_list = [str(x) for x in input().split()]
    a = int(a_list[0])
    b = int(a_list[2])
    op = a_list[1]
    if op == '+':
        ab = a + b
        print(ab)
        i = i + 1
        continue
    elif op == '-':
        ab = a - b
        print(ab)
        i = i + 1
        continue
    elif op == '*':
        ab = a * b
        print(ab)
        i = i + 1
        continue
    elif op == '/':
        ab = a // b
        print(ab)
        i = i + 1
        continue
    elif op == '-':
        exit()

Submission status: Runtime Error

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 a=="?" or b=="?" or c=="?":
        break

Submission status: Runtime Error

Solution code:
def main():
    operator={
        "+":lambda x,y: x + y,
        "-":lambda x,y: x - y,
        "*":lambda x,y: x * y,
        "/":lambda x,y: x / y,
    }
while True:
    a,op,b=input().split()
    if op == "?":
        break
    print("d".format(opertor[op](int(a),int(b))))

if __name__=='__main__':
    main()

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
ops = []
kekka = []

while True:
    op = [e for e in input().split()]
    if op[1]=="?":
        break
    ops.append(op)

for i in range(len(ops)):
    if ops[i][1]=="+":
        sum = int(ops[i][0]) + int(ops[i][2])
        kekka.append(sum)
    elif ops[i][1]=="-":
        hiku = int(ops[i][0]) - int(ops[i][2])
        kekka.append(hiku)
    elif ops[i][1]=="*":
        kakeru = int(ops[i][0]) * int(ops[i][2])
        kekka.append(kakeru)
    elif ops[i][1]=="/":
        waru = floor(int(ops[i][0]) / int(ops[i][2]))
        kekka.append(waru)

for j in kekka:
    print(int(j))

Submission status: Runtime Error

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

Solution code:
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
 else op == '/':
  ans = a/b

 print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
  a,op,c = map(str, input().split())
  a = int(a)
  c = 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: Runtime Error

Solution code:
while True:
  a,op,c = map(str, input().split())
  a = int(a)
  c = int()
  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: Runtime Error

Solution code:
while True:
  a,op,c = map(str, input().split())
  a = int(a)
  c = int(c)
  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: Runtime Error

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

Submission status: Runtime Error

Solution code:

while true:
	a,op,b = raw_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)
	else:
		print int(a) / int(b)

Submission status: Runtime Error

Solution code:

while true:
	a,op,b = raw_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)
	else:
		print int(a) / int(b)

Submission status: Runtime Error

Solution code:
import sys, operator

list = {'+':operator.add, '-':operator.sub, '*':operator.mul, '/':operator.div}

for line in sys.stdin:
    a, op, b = line.split()
    if op == '?': break
    print(int(list[op](a, b)))

Submission status: Runtime Error

Solution code:
while True:
    _exp = raw_input()
    if _exp == "0 ? 0":
        break
    print(eval(_exp))

Submission status: Runtime Error

Solution code:
a op b = (str(i) for i in input().split())
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))
else:print(int(a) % int(b))

Submission status: Runtime Error

Solution code:
a, op, b = (str(i) for i in input().split())
if op != '?':
 if op == '+':print(int(a) + int(b))
 if op == '-':print(int(a) - int(b))
 if op == '*':print(int(a) * int(b))
 if op == '/' and int(a) % int(b) == 0:print(int(a) // int(b))
 else:print(int(a) % int(b))
else:
 break

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
 result = 0
 i = input().split()
 if i[1] == '+':
  result = int(i[0]) + int(i[2])
 elif i[1] == '-':
  result = int(i[0]) - int(i[2])
 elif i[1] == '*':
  result = int(i[0]) * int(i[2])
 elif i[1] == '/':
  result = int(i[0]) / int(i[2])
 print('{0}\n'.format(result))

Submission status: Runtime Error

Solution code:
while True:
    i = input().split()
    result = 0
    if i[1] == '+':
        result = int(i[0]) + int(i[2])
    elif i[1] == '-':
        result = int(i[0]) - int(i[2])
    elif i[1] == '* ':
        result = int(i[0]) * int(i[2])
    elif i[1] = ' / ':
        result = int(i[0]) / int(i[2])
    else i[1] = ' ? ':
        result = int(i[0]) op int(i[2])

    print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
 from sys import stdin
 
while True:
    (a, op, b) = stdin.readline().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: Runtime Error

Solution code:
while True:
	a=raw_input()
	if a == "0 ? 0":
		break
	b=a.split()
	for i,c in enumerate(b):
		if i==0:
			x=int(c)
		elif i==1:
			y=c
		else:
			z=int(c)
	if y=='+':
		w=x+z
	elif y=='-':
		w=x-z
	elif y=='*':
		w=x*z
	elif y=='/':
		w=x/z
	print w

Submission status: Runtime Error

Solution code:
while True:
	a=raw_input()
	if a == "0 ? 0":
		break
	b=a.split()
	for i,c in enumerate(b):
		if i==0:
			x=int(c)
		elif i==1:
			y=c
		else:
			z=int(c)
	if y=='+':
		w=x+z
	elif y=='-':
		w=x-z
	elif y=='*':
		w=x*z
	elif y=='/':
		w=x/z
	print w

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding:UTF-8

a,op,b = map(str,raw_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: Runtime Error

Solution code:
#coding:UTF-8

a,op,b = map(str,raw_input().split())
a = int(a)
b = int(b)

while True:
    if op == '+':
        print a + b
    elif op == '-':
        print a - b
    elif op == '*':
        print a * b
    elif op == '/':
        print a / b
    else:
        break:

Submission status: Runtime Error

Solution code:
#coding:UTF-8

a,op,b = map(raw_input().split())
a = int(a)
b = int(b)

while True:
    if op == '+':
        print a + b
    elif op == '-':
        print a - b
    elif op == '*':
        print a * b
    elif op == '/':
        print a / b
    else:
        break

Submission status: Runtime Error

Solution code:
#coding:UTF-8

a,op,b = map(int,raw_input().split())
op = str(op)

while True:
    if op == '+':
        print a + b
    elif op == '-':
        print a - b
    elif op == '*':
        print a * b
    elif op == '/':
        print a / b
    else:
        break

Submission status: Runtime Error

Solution code:
#coding:UTF-8

while True:
    a,op,b = map(str,raw_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:
        continue

Submission status: Runtime Error

Solution code:
while True:
    a, op, b = map(str, raw_input().split())
    if op == "?":
        break
    if op == "/":
        op = "//"
    print(eval(a + op + b))

Submission status: Runtime Error

Solution code:
while True:
    a, op, b = map(str, raw_input().split())
    if op == "?":
        break
    if op == "/":
        op = "//"
    formula = a + op + b
    print(eval(formula))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def cal(a, op, b)

if op == '+':
  a + b
elif op == '-':
  a + b
elif op == '*':
  a * b
elif op == '/':
  a / b

while 1:
  a,op,b = raw_input().split()
  if op == '?':
    break
  else:
    cal(int(a), op, int(b))

Submission status: Runtime Error

Solution code:
def cal(a, op, b):

  if op == '+':
    r = a + b
  elif op == '-':
    r = a + b
  elif op == '*':
    r = a * b
  elif op == '/':
    r = a / b

while 1:
  a,op,b = raw_input().split()
  if op == '?':
    break
  else:
    cal(int(a), op, int(b))
  print r

Submission status: Runtime Error

Solution code:
def cal(a, op, b):

  if op == '+':
    r = a + b
  elif op == '-':
    r = a + b
  elif op == '*':
    r = a * b
  elif op == '/':
    r = a / b

while 1:
  a,op,b = raw_input().split()
  if op == '?':
    break
  else:
    cal(int(a), op, int(b))
    print r

Submission status: Runtime Error

Solution code:
def cal(a, op, b):

  if op == '+':
    r = a + b
  elif op == '-':
    r = a + b
  elif op == '*':
    r = a * b
  else:
    r = a / b
    return r

while 1:
  a,op,b = raw_input().split()
  if op == '?':
    break
  else:
    cal(int(a), op, int(b))
    print r

Submission status: Runtime Error

Solution code:
def cal(a, op, b):

  if op == '+':
    r = a + b
  elif op == '-':
    r = a + b
  elif op == '*':
    r = a * b
  else:
    r = a / b
  return r

while 1:
  a,op,b = raw_input().split()
  if op == '?':
    break
  else:
    cal(int(a), op, int(b))
    print r

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
While True:
    nums= input(),split()
    a = int(nums[0])
    op = nums[1]
    b = int(nums[2])

    if op == '?':
        break

    if op == '+':
        i = a + b
        print(i)

    if op == '-':
        i = a - b
        print(i)

    if op == '*':
        i = a * b
        print(i)

    if op == '/':
        i = a / b
        round(i)
        print(i)

Submission status: Runtime Error

Solution code:
While True:
    nums= input(),split()
    a = int(nums[0])
    op = int(nums[1])
    b = int(nums[2])

    if op == '?':
        break

    if op == '+':
        i = a + b
        print(i)

    if op == '-':
        i = a - b
        print(i)

    if op == '*':
        i = a * b
        print(i)

    if op == '/':
        i = a / b
        round(i)
        print(i)

Submission status: Runtime Error

Solution code:
While True:
    nums= input(),split()
    a = int(nums[0])
    op = nums[1]
    b = int(nums[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: Runtime Error

Solution code:
While True:
    nums= input().split()
    a = int(nums[0])
    op = nums[1]
    b = int(nums[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: Runtime Error

Solution code:
While True:
    (a, op, b) = input().split()
    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)

Submission status: Runtime Error

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)