Buggy python submission (verdict: Runtime Error):
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

Fixed submission:
while(1):
  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)
  elif op == "?":
    break

Buggy python submission (verdict: Runtime Error):
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

Fixed submission:
while(1):
  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)
  elif op == "?":
    break

Buggy python submission (verdict: Runtime Error):
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

Fixed submission:
while(1):
  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)
  elif op == "?":
    break

Buggy python submission (verdict: Runtime Error):
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

Fixed submission:
while(1):
  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)
  elif op == "?":
    break

Buggy python submission (verdict: Runtime Error):
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

Fixed submission:
while(1):
  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)
  elif op == "?":
    break

Buggy python submission (verdict: Runtime Error):
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

Fixed submission:
while(1):
  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)
  elif op == "?":
    break

Buggy python submission (verdict: Runtime Error):
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

Fixed submission:
while(1):
  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)
  elif op == "?":
    break