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,b,c]=[x for x in input().split()]
    [a,c]=[int(a),int(c)]
    op=b
    if a==0 and c==0:
        break
    elif op=="+":
        print(a+c)
    elif op=="-":
        print(a-c)
    elif op=="*":
        print(a*c)
    else:
        print(a//c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while 1:

x,op,y = raw_input().split()

if op == "?":
    break

x = int(x)
y = int(y)

if op == "+":
    print x+y
elif op == "-":
    print x-y
elif op == "*":
    print x*y
else:
    print x/y

Submission status: Runtime Error

Solution code:
import time,sys,io,pprint,math

a = []
while True:
    m,n,o = input()
    m=int(m)
    o=int(o)
    if n == "?":
        break
    if n=="+":
    	a.append(m+o)
    elif n=="-":
    	a.append(m-o)
    elif n=="*":
    	a.append(m*o)
    elif n=="/":
    	a.append(m/o)

for i in a:
	print(a)

Submission status: Runtime Error

Solution code:

a = []
while True:
    m,n,o = input()
    m=int(m)
    o=int(o)
    if n == "?":
        break
    if n=="+":
    	a.append(m+o)
    elif n=="-":
    	a.append(m-o)
    elif n=="*":
    	a.append(m*o)
    elif n=="/":
    	a.append(m/o)

for i in a:
	print(a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

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)

Submission status: Runtime Error

Solution code:
'''
ITP-1_4-C
 ?¨???????
???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´?????????
?°???°?????\??????????????¨????????????????¨????????????¨????????????
???Input
??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????
 a op b
op ??? '?' ?????¨??? ??\?????????????????????????????????????????±???????????????????????£????????????????????????
???Output
?????????????????????????????????????¨??????????????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
for inputData in sys.stdin:
    a, op, b = map(int,input().split())
#    a, b, op = int(inputData[0]), int(inputData[2]), inputData[1]
    retVal = 0

    # 0?????´??? ????????????
    if op == '?':
        # exec end
        break
    elif op == '+':
        retVal = int(a) + int(b)
    elif op == '-':
        retVint(a)l = int(a) - int(b)
    elif op == '*':
        retVal = int(a) * int(b)
    elif op == '/':
        retVal = int(a) / int(b)
    else:
        retVal = 0

    # ????????????
    print(retVal)

Submission status: Runtime Error

Solution code:
'''
ITP-1_4-C
 ?¨???????
???????????´??° a, b ??¨?????????????????? op ?????????????????§???a op b ????¨??????????????????°?????????????????????????????????
????????????????????? op ??????"+"(???)???"-"(???)???"*"(???)???"/"(???)???????????¨?????????????????§????????????????????´?????????
?°???°?????\??????????????¨????????????????¨????????????¨????????????
???Input
??\???????????°????????????????????????????§???????????????????????????????????????????????????¢????????\????????¨????????§??????
 a op b
op ??? '?' ?????¨??? ??\?????????????????????????????????????????±???????????????????????£????????????????????????
???Output
?????????????????????????????????????¨??????????????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
for inputData in sys.stdin:
    a, op, b = map(int,input().split())
    retVal = 0

    # 0?????´??? ????????????
    if op == '?':
        # exec end
        break
    elif op == '+':
        retVal = int(a) + int(b)
    elif op == '-':
        retVal = int(a) - int(b)
    elif op == '*':
        retVal = int(a) * int(b)
    elif op == '/':
        retVal = int(a) / int(b)
    else:
        retVal = 0

    # ????????????
    print(retVal)

Submission status: Runtime Error

Solution code:
import sys
data = sys.stdin.readline()
    if '?' in data:
        break
    print(eval(data.replace('/','//')))

Submission status: Runtime Error

Solution code:
import sys
data = sys.stdin.readline()
if '?' in data:
    break
print(eval(data.replace('/','//')))

Submission status: Runtime Error

Solution code:
import sys

for line in sys.stdin.readline():
  a,op,b = line.split()
  if op == '?':
    break
  print eval(line)

Submission status: Runtime Error

Solution code:
import sys
 
l = []
for line in sys.stdin.readline():
  l.append(line)

for i in l:
  a,op,b=i.split()
  if op == '?':
    break
  print eval(i)

Submission status: Runtime Error

Solution code:
while 1:
    a,op,b = map(int,input().split())
    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 1:
    a,op,b = map(int,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:
  a = input()
  if a == '0 ? 0': break
  print(exec(a))

Submission status: Runtime Error

Solution code:
while:
  a = input()
  if a == '0 ? 0': break
  exec('print(' + a + ')')

Submission status: Runtime Error

Solution code:
#ITP1_4_C:   Simple Calculator
while True:
    a, op, b = input().split()
    a, b = int(a), int(b)
    if op == '?':
        break
    elif op =='+':
        print(a+b) +1
    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, b = int(a), int(b)
    if op == '?':
        break
    elif op =='+':
        print(a+b) +1
    elif op =='-':
        print(a-b)    
    elif op =='*':
        print(a*b)
    elif op =='/':
        print(a//b)

Submission status: Runtime Error

Solution code:
while 1:
	ass,b,css=raw_input().split()
	ass=int(a)
	css=int(c)
	if b=='*':print a*c
	if b=='+':print a+c
	if b=='-':print a-c
	if b=='/':print a/c
	if b=='?':break

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
    calc = input()
    if calc == '0 ? 0':
        break
    print(eval(calc.replace("/","//")))

Submission status: Runtime Error

Solution code:
While True:
    array = input().split(" ")
    a = int(array[0])
    op = array[1]
    b = int(input())

    if op == "?":
        break
    print(a, op, b)

Submission status: Runtime Error

Solution code:
While True:
    array = input().split(" ")
    a = int(array[0])
    op = array[1]
    b = int(input())

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

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

    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:
    array = input().split(" ")
    a = int(array[0])
    op = array[1]
    b = int(array[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:
    array = input().split(" ")
    a = int(array[0])
    op = array[1]
    b = int(array[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(" ")
    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 == "?":
        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()
    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:
    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:
    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:
    C == input()
    if '?' in C:
       break
    print(eval(C.replace('/','//')))

Submission status: Runtime Error

Solution code:
N = input().split()

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

if op == '?':
    break
else:
    print(a op b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = map(int, input(), split())
op = ["+", "-", "*", "/", "?"]

for i in range(20000):
      if op == "?":
         break
      else:
         print(a op b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
a,op,c=sys.stdin.readline().split()
def ope(a,op,b):
    if op == '+': ret = a + b
    if op == "-": ret = a - b
    if op == "*": ret = a * b
    if op == "/": ret = a / b
    return ret
print(ope(a,op,b))

Submission status: Runtime Error

Solution code:
import sys

a,b,c =sys.stdin.realine.split()
if b == "+":
    d = a+c
    print(d)
if b=="-":
    d = a-c
    print(d)
if b=="*":
    d = a*c
    print(d)
if b=="/":
    d=a//c
    print(d)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Solution code:
inport sys
str = []
for line in sys.stdin.readlines()
    str.append(line.rstrip())
num = len(str)
for i in range(num)
    s = str.split(" ")
    a = int(s[0])
    b = s[1]
    c = s[2]
    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: Runtime Error

Solution code:
inport sys
str = []
for line in sys.stdin.readlines()
    str.append(line.rstrip())
num = len(str)
for i in range(num)
    s = str.split(" ")
    a = int(s[0])
    b = s[1]
    c = s[2]
    if b =="?":
        break
    if b == "+":
        print(a+c)
    if b == "-":
        print(a-c)
    if b == "*":
        print(a*c)
    if b == "/"
        print(int(a/c))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
    x=input()
    if x=="0 ? 0":
        break
    print(int(eval(x)))

Submission status: Runtime Error

Solution code:
while True:
    x=input()
    if x=="0 ? 0":
        break
    print(int(eval(x.replace(/,//)))

Submission status: Runtime Error

Solution code:
while True:
    x=input()
    if x=="0 ? 0":
        break
    print(int(eval(x.replace("/","//")))

Submission status: Runtime Error

Solution code:
while True:
    x=input()
    if x=="0 ? 0":
        break
    print(int(eval(x.replace("/","//"))))

Submission status: Runtime Error

Solution code:
while True:
    x=input()
    if x=="0 ? 0":
        break
    print(eval(x.replace("/","//")))

Submission status: Runtime Error

Solution code:

while 1:
	a,"op",b= map(int,raw_input().split())
	if op==+:
		x=a+b
	elif op==-:
		x=a-b
	elif op==*:
		x=a*b
	elif op==/:
		x=a/b
	elif op=="?":
		break
	
	print "%d" %(x)

Submission status: Runtime Error

Solution code:

while 1:
	a,"op",b= map(int,raw_input().split())
	if op=="+":
		x=a+b
	elif op=="-":
		x=a-b
	elif op=="*":
		x=a*b
	elif op=="/":
		x=a/b
	elif op=="?":
		break
	
	print "%d" %(x)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:

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

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

Submission status: Runtime Error

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

while True:
    if op == "?":
        break
    else:
        if op == "+":
            print int(a)+int(b)
        elif op == "-":
            print int(a)-ing(b)
        elif op == "*":
            print int(a)*int(b)
        elif op == "/":
            print int(a)//int(b)
        else:
            print "error"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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)
    else op == "?":
        break

Submission status: Runtime Error

Solution code:

while True:
    a, op, b = (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)
    else op == "?":
        break

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = raw_input().split()
a = x[0]
op = x[1]
b = x[2]

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

  if op = ?:
    break

Submission status: Runtime Error

Solution code:
x = raw_input().split()
a = x[0]
op = x[1]
b = x[2]

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

Submission status: Runtime Error

Solution code:
x, op, y = map(str,raw_input().split()
a = int(x)
b = int(y)

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

Submission status: Runtime Error

Solution code:
while True:
  a, op, b = map(int. raw_input().split())
  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:
  a, op, b = map(int. raw_input().split())
  if op == +:
   print(a + b)
  elif op == -:
    print(a - b)
  elif op == *:
    print(a * b)
  elif op == /:
    print(a // b)
  else op == ?:
    break

Submission status: Runtime Error

Solution code:
while True:
  a, op, b = map(int. raw_input().split())
  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 = map(int. raw_input().split())
  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:
a, op, b = map(int. raw_input().split())
while True:
  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:
    if o==?:break
    a,o,b=map(input().split())
    int(a,b)
    print(aob)

Submission status: Runtime Error

Solution code:
while True:
    a,o,b=map(input().split())
    int(a,b)
    if o==?:break
    else:
        if o==/:o=//
    print(a,o,b)

Submission status: Runtime Error

Solution code:
while True:
    a=input()
    if '?' in a:break
    if '/' in a:/=//
    eval(a)

Submission status: Runtime Error

Solution code:

my_value_list = []

while True:
    try:
        my_value_list.append(input().split())
    except EOFError:
        break

for i in my_value_list:
    if my_value_list[i][2] == "+":
        print(int(my_value_list[i][]) + int(my_value_list[i][2]))
    elif my_value_list[i][2] == "-":
        print(int(my_value_list[i][0]) - int(my_value_list[i][2]))
    elif my_value_list[i][2] == "/":
        print(int(my_value_list[i][0]) // int(my_value_list[i][2]))
    elif my_value_list[i][2] == "*":
        print(int(my_value_list[i][0]) * int(my_value_list[i][2]))
    else:
        break

Submission status: Runtime Error

Solution code:
x, op, y = map(string, input().split())
while not (x == 0 and y == 0 and op == "?") :
 if op == "+" :
  print(x + y)
 elif op == "-":
  print(x - y)
 elif op == "*":
  print(x * y)
 elif op == "/":
  print(x / y)

Submission status: Runtime Error

Solution code:
x, op, y = map(string, input().split())
x = int(x)
y = int(y)
while not (x == 0 and y == 0 and op == "?") :
 if op == "+" :
  print(x + y)
 elif op == "-":
  print(x - y)
 elif op == "*":
  print(x * y)
 elif op == "/":
  print(x / y)

Submission status: Runtime Error

Solution code:
x, op, y = input().split()
x = int(x)
y = int(y)
while not (x == 0 and y == 0 and op == "?") :
 if op == "+" :
  print(x + y)
 elif op == "-":
  print(x - y)
 elif op == "*":
  print(x * y)
 elif op == "/":
  print(x // y)

 x, op, y = input().split()

Submission status: Runtime Error

Solution code:
x, op, y = input().split()
x = int(x)
y = int(y)
while not (x == 0 and y == 0 and op == "?") :
 if op == "+" :
  print(x + y)
 elif op == "-":
  print(x - y)
 elif op == "*":
  print(x * y)
 elif op == "/":
  print(x // y)
 x, op, y = input().split()
 x = int(x)
 y = int(y)

Submission status: Runtime Error

Solution code:

flag =0
while flag==0:
    a,b,c=[ i for i in input().split()])
    if b=="?":
        flag=1
        break
    elif b=="+":
        n=int(a)+int(c)
    elif b=="-":
        n=int(a)-int(c)
    elif b=="*":
        n=int(a)*int(c)
    elif b=="/":
        n=int(a)/int(c)
    print(int(b)

Submission status: Runtime Error

Solution code:
data = raw_input().split(" ")
a = int(data[0])
op = data[1]
b = int(data[2])

while True:
	if op = "?":
		break
	elif op == "+":
		ans = a + b
	elif op == "-":
		ans = a - b
	elif op == "*":
		ans = a * b
	else:
		ans = a / b

print ans

Submission status: Runtime Error

Solution code:
while True:
	data = raw_input().split(" ")
	a = int(data[0])
	op = data[1]
	b = int(data[2])

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

	print ans

Submission status: Runtime Error

Solution code:
While True:
    a, op, b = input().split()
    a,b = int(a), int(b)
    op_dict = {'+': (lambda x,y: x + y),
               '-': (lambda x,y: x - y),
               '*': (lambda x,y: x * y),
               '/': (lambda x,y: x // y),
               '?': '?'}
    func = op_dict[op]
    if func != '?': break 
    print('%d' % int(func(a, b)))

Submission status: Runtime Error

Solution code:
While True:
    a, op, b = input().split()
    a,b = int(a), int(b)
    op_dict = {'+': (lambda x,y: x + y),
               '-': (lambda x,y: x - y),
               '*': (lambda x,y: x * y),
               '/': (lambda x,y: x // y),
               '?': '?'}
    func = op_dict[op]
    if func == '?': break 
    print('%d' % int(func(a, b)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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:
def calc(s):
    t=s.split()
    a=int(t[0])
    b=int(t[2])
    op=t[1]
    if op=="+":
        return ("{0}".format(a+b))
    if op == "-":
        return ("{0}".format(a - b))
    if op == "*":
        return ("{0}".format(a * b))
    if op == "/":
        return ("{0}".format(a // b))
w="yjsnpi"
a=[]
while(w!="0 ? 0"):
    w=input()
    a.append(w)
a.remove("0 ? 0")
for st in a:
    print("{0}".format(calc(st)))