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) = [int(i) if i.isdigit() else i for i in 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)
      else :
          break

Submission status: Runtime Error

Solution code:
while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in 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:
while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in 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:
while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]

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

Submission status: Runtime Error

Solution code:
while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]

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

Submission status: Runtime Error

Solution code:
while True:
    (a, op, b) = [int(i) if i.isdigit() else i for i in 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:
    (H, W) = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for a in range(H):
        for b in range(w):
            print('#', end='')
        print()
    print()

Submission status: Runtime Error

Solution code:
(lambda *_: None)(*map(print,
                       map(eval,
                           map(lambda s: s.replace('/', '//'),
                               iter(input, '0 ? 0')))))

Submission status: Runtime Error

Solution code:
from itertools import takewhile
(lambda *_: None)(*map(print,
                       map(eval,
                           map(lambda s: s.replace('/', '//'),
                               takewhile(lambda s: '?' not in s,
                                         iter(input))))))

Submission status: Runtime Error

Solution code:
from itertools import takewhile
(lambda *_: None)(*map(print,
                       map(eval,
                           map(lambda s: s.replace('/', '//'),
                               takewhile(lambda s: '?' not in s,
                                         iter(input, '')))))

Submission status: Runtime Error

Solution code:
while True:
????????data = input()
????????if '?' in data:
????????????????break
????????print(eval(data.replace('/','//')))

Submission status: Runtime Error

Solution code:
while 1:
  l=raw_input()
  if l.find("?")==2:
    break
  print eval(l)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

for v in sys.stdin
    a,op,b = v.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:
import sys

for v in iter(sys.stdin.readline)
    a,op,b = v.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:
#-------------------------------------------------------------------------------
# coding: utf-8
# Created:  
import sys

op = { "+" : 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 = sys.readline().split()
    if op_ == "?" : break
    a1, b1 = int(a), int(b)

    print op[op_](a1, b1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

while 1:
 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,b,op=map(int,raw_input().split())
 
while 1:
 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 1:
 a,b,op=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:

while 1:
 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:
while True:
 a,op,b = map(int,raw_input().split())

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

Submission status: Runtime Error

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

 if(op=='*'):
  print '%d'%(a*b)
 elif(op=='/'):
  print a/b
 elif(op==+):
  x=a+b
  print x
 elif(op==-):
  x=a-b
  print x
 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:
  break

Submission status: Runtime Error

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

Solution code:
a,b = map(int, raw_input().split())
op = f.read()

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

Submission status: Runtime Error

Solution code:
a,b = map(int, raw_input().split())
op = f.read()

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

Submission status: Runtime Error

Solution code:
while(1):
  a,b = map(int, raw_input().split())
  op = f.read()

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

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

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

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

Solution code:
While True:
  a, op, b = int(raw_input()), raw_input(), int(raw_input())
  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
  else:
    break

Submission status: Runtime Error

Solution code:
While True:
  a, op, b = 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:
While True:
  a, op, b = 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:
While True:
  s = raw_input().split()
  a = int(s[0])
  op = s[1]
  b = int(s[2])
  if op == '+':
    print a+b
  elif op == '-':
    print a-b
  elif op == '*':
    print a*b
  elif op == '/':
    print a/b
  else:
    break

Submission status: Runtime Error

Solution code:
While True:
  s = raw_input().split()
  a = int(s[0])
  op = s[1]
  b = int(s[2])
  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:
  s = raw_input().split()
  a = int(s[0])
  op = s[1]
  b = int(s[2])
  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(), raw_input(), input()
  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:
  s = raw_input().split()
    a = int(s[0])
    op = s[1]
    b = int(s[2])
  if op == "+":
    print a+b
  elif op == "-":
    print a-b
  elif op == "*":
    print a*b
  elif op == "/":
    print a/b
  else:
    break

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Solution code:
while 1:
   a, op, b = map(raw_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:
s[1] = "a"
while s[1] != "?":
    s = raw_input().split()
    if s[1] == "?":
        break
    a = int(s[0])
    b = int(s[2])
    if s[1] == "+":
        print a + b
    if s[1] =="-":
        print a - b
    if s[1] == "*":
        print a * b
    if s[1] == "/":
        print a / b

Submission status: Runtime Error

Solution code:
while True
  a,op,b = raw_input().split
  a,b = map(int,[a,b])

  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
  a,b = map(int,[a,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
  a,b = map(int,[a,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: Runtime Error

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

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

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

Submission status: Runtime Error

Solution code:
str = raw_input()
a = map(int, str[0])
op = str[1]
b = map(int, str[2])

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:


while True:
    Input = raw_input().split()
 
    a  = int(Input[0])
    op = Input[1]
    b  = int(Input[2])
 
    if   op == "+":
        ans = a + b
        print ans
    elif op == "-":
        ans = a - b
        print ans
    elif op == "/":
        ans = a / b
        print ans
    elif op == "*":
        ans = a * b
        print ans
    elif op == "?":
        break
 

 
Compile Error Logs: 

You are not authorized to see the message. 
 
 
Status 
Judge: 5/5  Python  CPU: 00.01 sec  Memory: 6436 KB  Length: 376 B  2016-01-27 11:43  2016-01-27 11:43  
Results for testcases 
Case # Verdict CPU Time Memory In Out Case Name 
 Case #1: : Accepted  00.01 sec 6344 KB 12 B 2 B test_case_1 
 Case #2: : Accepted  00.01 sec 6384 KB 30 B 9 B test_case_2 
 Case #3: : Accepted  00.00 sec 6240 KB 178 B 69 B test_case_3

Submission status: Runtime Error

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

 
Compile Error Logs: 

You are not authorized to see the message. 
 
 
Status 
Judge: 5/5  Python  CPU: 00.01 sec  Memory: 6436 KB  Length: 376 B  2016-01-27 11:43  2016-01-27 11:43  
Results for testcases 
Case # Verdict CPU Time Memory In Out Case Name 
 Case #1: : Accepted  00.01 sec 6344 KB 12 B 2 B test_case_1 
 Case #2: : Accepted  00.01 sec 6384 KB 30 B 9 B test_case_2 
 Case #3: : Accepted  00.00 sec 6240 KB 178 B 69 B test_case_3

Submission status: Runtime Error

Solution code:
while true:
 
  x = raw_input().split()
  a = int(x[0])
  op = x[1]
  b = int(x[2])
 
  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 1:
	if "?" in raw_input.split():
		break
	a,b,op = map(int,raw_input().split()
	print a op b

Submission status: Runtime Error

Solution code:
x = raw=_input().split()
a,op,b = x[0],x[1],x[2]
while 1:
	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 = x[0],x[1],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:
while 1:
	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:
while True:
    a,b,c = input().split()
    if b=='?':
        break
    elif b =='+':
        d = int(a) + int(c)
    elif b=='-':
        d = int(a) - int(c)
    elif b=='*':
        d = int(a)*int(c)
    else :
        d = int(a)/int(c)
    print(int(d)

Submission status: Runtime Error

Solution code:
ct=-1
a=[0]*100000
b=[0]*100000
c=[0]*100000
while True:
    ct+=1
    a[ct],b[ct],c[ct]=map(str,raw_input().split())
    if b[ct]==?:
        break
    else:
        continue
for i in xrange(ct):
    if b[i]=="+":
        print(int(a[i])+int(c[i]))
    elif b[i]=="-":
        print(int(a[i])-int(c[i]))
    elif b[i]=="*":
        print(int(a[i])*int(c[i]))
    else:
        print(int(a[i])/int(c[i]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
wihle True:
    a, op, b = map(str, raw_input().split())

    if op in "+":
        print int(a)+int(b) 
    elif op in "-":
        print int(a)-int(b)
    elif op in "*":
        print int(a)*int(b)
    elif op in "/":
        print int(a)/int(b)
    else :
        break;

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
i = 0

while i == 0:
    x = raw_input()
    a, op, b = x.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 == "?":
        i == 1

Submission status: Runtime Error

Solution code:

    x = raw_input()
    a, op, b = x.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 == "?":
        i == 1

Submission status: Runtime Error

Solution code:
i = 0

while i == 0:
    x = raw_input()
    a, op, b = x.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 == "?":
        i == 1
????????????break

Submission status: Runtime Error

Solution code:
i = 0

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

Submission status: Runtime Error

Solution code:
i = 0

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

Submission status: Runtime Error

Solution code:
l=raw_input()
k=l.split()
a=int(k[0])
b=k[3] 
c=int(k[2])
#
if b='+':
        print a + b
if b='-':
        print a - b
if b='*':
        print a * b
if b='/':
        print a / b

Submission status: Runtime Error

Solution code:
while True:
    a, op, b = map(str, input().split())
    a = int(a)
    b = int(b)
    if 0 < a < 20001 and 0 < b < 20001:
        if op == "+":
            answer = a + b
            print(answer)
        elif op == "-":
            answer = a - b
            print(answer)
        elif op == "*":
            answer = a * b
            print(answer)
        elif op == "/":
            answer = a / b
            print(answer)
        elif op == "?":
            break
    else:
        continue

Submission status: Runtime Error

Solution code:
import math

while True:
    a, op, b = map(str, input().split())
    a = int(a)
    b = int(b)
    if 0 < a < 20001 and 0 < b < 20001:
        if op == "+":
            answer = a + b
            print(answer)

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

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

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

        elif op == "?":
            break
    else:
        continue

Submission status: Runtime Error

Solution code:
a = []
while True:
    x = map(raw_input().split())
    if x[1] == '?':
        break
    if x[1] == '+':
        a.append(int(x[0] + int(x[2])))
    if x[1] == '-':
        a.append(int(x[0] - int(x[2])))
    if x[1] == '*':
        a.append(int(x[0] * int(x[2])))
    if x[1] == '/':
        a.append(int(x[0] / int(x[2])))
for i in range(len(a)):
    print a[i]

Submission status: Runtime Error

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

    if op == '?':
        break

    if op == '+':

Submission status: Runtime Error

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

    if 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 == '+':
        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 = 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)

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

    if op == '?':
        break

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

Submission status: Runtime Error

Solution code:
while True:
    a, op, b = input().sprit()
    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) = [int(i) if i.isdigit() else i for i in input().split()]
    
    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,b,c]=[x for x in input().split()]
    a,b=int(a),int(b)
    if a==0 and b==0:
        break
    elif 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:
    [a,b,c]=[x for x in input().split()]
    [a,c]=[int(a),int(c)]
    print("processing")
    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)