Buggy python submission (verdict: Runtime Error):
x = list(int(input())
for i in range(x):
    for a in x:
        if x == 0:
             break
print("Case"+" "+i+":"+x)

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
x = list(int(input())
for i in range(len(x)):
    for a in x:
        if x == 0:
            break
print("Case {0}: {1}".format(i,a))

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
x = list(int(input))
for i in range(len(x)):
    for a in x:
        if x == 0:
            break
print("Case {0}: {1}".format(i,a))

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
x = int(input())
a = 1
for i in x:
            if i == 0:
                      break
            print("Case {0}: {1}".format(a,i)
            a += 1

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
x = int(input())
a = 1
for i in x:
            if i == 0:
                      break
            print("Case {0}: {1}".format(a,i))
            a += 1

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
x = int(input())
a = 1
for i in x:
            if i == 0:
                      break
            print("Case { }: { }".format(a,i))
            a += 1

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
x = int(input())
a = 1
for i in x:
            if i == 0:
                      break
            print("Case {}: {}".format(a,i))
            a += 1

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
import sys
a = 1
While 1:
        x = sys.stdin.readline().strip()
        if x == 0:
                  break;
        print("Case {0}: {1}".format(a,x))
        a += 1
        

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
import sys
a = 1

While 1:
        x = sys.stdin.readline().strip()
        if x == "0":
                  break;
        print("Case {0}: {1}".format(a,x))
        a += 1
        

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
import sys
a = 1

While 1:
        x = sys.stdin.readline().strip()
        if x == 0:
                  break;
        print("Case {0}: {1}".format(a,x))
        a += 1
        

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
import sys
a = 1

for x in sys.stdin.strip():
        if x == "0":
                break;
        print("Case {}: {}".format(a,x))
        a += 1

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1

Buggy python submission (verdict: Runtime Error):
import sys
a = 1

for x in sys.stdin.readlines().strip():
        if x == "0":
                break;
        print("Case {}: {}".format(a,x))
        a += 1

Fixed submission:
import sys
a = 1

for i in sys.stdin:
        x = i.strip()
        if x == "0":
                break;
        print("Case {0}: {1}".format(a,x))
        a += 1