Buggy python submission (verdict: Runtime Error):
a = map(str,map(int, raw_input()))

for i in a:
    if a[i] /= 0:
        print "Case",i+1,":",a[i]
    else:
        break

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1

Buggy python submission (verdict: Runtime Error):
import sys

i = 1
for line in sys.stdin:
    if line != 0:
       print "Case %d: %d" % (i, line)
    else:
       break
    i += 1

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1

Buggy python submission (verdict: Runtime Error):
from __future__ import division, print_function
from sys import stdin

i = 1
for line in sys.stdin:
    if line != 0:
       print "Case %d: %d" % (i, line)
    else:
       break
    i += 1

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1

Buggy python submission (verdict: Runtime Error):
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    if line != 0:
       print "Case %d: %d" % (i, line)
    else:
       break
    i += 1

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1

Buggy python submission (verdict: Runtime Error):
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    if line != 0:
       print "Case %d: %d" % (i, line)
    else:
       break
    i += 1

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1

Buggy python submission (verdict: Runtime Error):
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if line != 0:
       print "Case %d: %d" % (i, x)
    else:
       break
    i += 1

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1

Buggy python submission (verdict: Runtime Error):
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if line != 0:
       print "Case %d: %d" % (i, x)
    else:
       break
    i += 1

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1

Buggy python submission (verdict: Runtime Error):
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if not x:
       break
    print "Case %d: %d" % (i, x)
    i += 1

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1

Buggy python submission (verdict: Runtime Error):
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if not x:
       break
    print "Case {}: {}".format(i, x)
    i += 1

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1

Buggy python submission (verdict: Runtime Error):
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if not x:
       break
    print 'Case {}: {}'.format(i, x)
    i += 1

Fixed submission:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    print ("Case %d: %d" % (i, x))
    i += 1