Problem:


Print Test Cases

In the online judge system, a judge file may include multiple datasets to check whether the submitted program outputs a correct answer for each test case. This task is to practice solving a problem with multiple datasets.

Write a program which reads an integer x and print it as is. Note that multiple datasets are given for this problem.

Input

The input consists of multiple datasets. Each dataset consists of an integer x in a line.

The input ends with an integer 0. You program should not process (print) for this terminal symbol.

Output

For each dataset, print x in the following format:

Case i: x

where i is the case number which starts with 1. Put a single space between "Case" and i. Also, put a single space between ':' and x.
  

Constraints

  
1 ≤ x ≤ 10000

  
The number of datasets ≤ 10000

Sample Input

3
5
11
7
8
19
0

Sample Output

Case 1: 3
Case 2: 5
Case 3: 11
Case 4: 7
Case 5: 8
Case 6: 19



Sample input:
3
5
11
7
8
19
0


Sample output:
Case 1: 3
Case 2: 5
Case 3: 11
Case 4: 7
Case 5: 8
Case 6: 19

Submission status: Accepted

Solution code:
from sys import stdin

for cnt, n in enumerate(stdin):
    n = n.rstrip()
    if n == "0":
        break

    print("Case {}: {}".format(cnt+1, n))

Submission status: Accepted

Solution code:
for i in range(100000):
  x = input()
  if x == 0:
    break
  print "Case " + str(i + 1) + ": " + str(x)

Submission status: Accepted

Solution code:
input_list = []
while(True):
    x = int(raw_input())
    if x == 0:
        break
    input_list.append(x)

i = 1
for x in input_list:
    print "Case %d: %d" % (i, x)
    i += 1

Submission status: Accepted

Solution code:
L = []
x = int(input())
while x != 0:
 L.append(x)
 x = int(input())

for (i, x) in enumerate(L):
 print("Case " + str(i + 1) + ": " + str(x))

Submission status: Accepted

Solution code:
import sys
cnt = 1
while 1:
    x = sys.stdin.readline().strip()
    if x == '0':
        break;
    print('Case %d: %s'%(cnt,x))
    cnt += 1

Submission status: Accepted

Solution code:
import sys
for i, x in enumerate(map(int, sys.stdin)):
    if not x: 
        break
    print("Case {0}: {1}".format(i + 1, x))

Submission status: Accepted

Solution code:
import sys

n = 1
while True:
    d = int(sys.stdin.readline().rstrip())
    if d == 0: break
    print("Case {}: {}".format(n,d))
    n+=1

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(input())
    if x == 0:
      break
    else:
      print ('Case {}: {}'.format(i,x))
      i += 1

Submission status: Accepted

Solution code:
i = 1
x = input()
while x != "0":
    print("Case %d: %s" % (i, x))
    i += 1
    x = input()

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(input())
    if x:
        print('Case {:d}: {:d}'.format(i, x))
        i += 1
    else:
        break

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(input())
    if not x:
        break
    print('Case {:d}: {:d}'.format(i, x))
    i += 1

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(input())
    if not x:
        break
    print('Case ' + str(i) + ':', x)
    i += 1

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(input())
    if not x:
        break
    print('Case', str(i) + ':', x)
    i += 1

Submission status: Accepted

Solution code:
for i in range(10000):
    num = int(input())
    if num == 0:
        break
    print("Case {0}: {1}".format(i+1,num))

Submission status: Accepted

Solution code:
i = 1
x = int(input())
while x:
    print('Case', str(i) + ':', x)
    x = int(input())
    i += 1

Submission status: Accepted

Solution code:
i = 1
x = int(input())
while x:
    print('Case {0}: {1}'.format(i, x))
    x = int(input())
    i += 1

Submission status: Accepted

Solution code:
i = 1
x = input()
while x:
    print('Case {0}: {1}'.format(i, x))
    x = int(input())
    i += 1

Submission status: Accepted

Solution code:
i = 1
x = input()
while x != '0':
    print('Case {0}: {1}'.format(i, x))
    x = input()
    i += 1

Submission status: Accepted

Solution code:
import sys
x = sys.stdin.readline().strip()
i = 1
while x != '0':
    print('Case {0}: {1}'.format(i, x))
    x = sys.stdin.readline().strip()
    i += 1

Submission status: Accepted

Solution code:
c = 1
while 1:
    i = input()
    if(i == "0"): break
    print("Case "+ str(c) + ": " + i)
    c += 1

Submission status: Accepted

Solution code:
data = ""
count = 1
end = True
while end:
    data = int(input())
    if data == 0:
        end = False
    else:
        print("Case",str(count)+":",data)
        count += 1

Submission status: Accepted

Solution code:
i = 1
while True:
    n = int(input())
    if n == 0:
        break
    print("Case {}: {}".format(i, n))
    i += 1

Submission status: Accepted

Solution code:
count = 1
while True:
    x = input()
    if x == '0':
        break
    print('Case {}: {}'.format(count, x))
    count += 1

Submission status: Accepted

Solution code:
for i in range(1, 10001):
    n = input()
    if n == "0":
        break
    print("Case {}: {}".format(i, n))

Submission status: Accepted

Solution code:
#coding: utf-8

import sys

i = 1
while True:
    a = int(raw_input())
    if a == 0:
        break
    print 'Case %d: %d' % (i, a)
    i+=1

Submission status: Accepted

Solution code:
cnt = 0
num = int(input())
while num != 0:
  cnt+=1
  print('Case {0}: {1}'.format(cnt, num))
  num = int(input())

Submission status: Accepted

Solution code:
cnt = 1
num = input()
while num != "0":
    print('Case {0}: {1}'.format(cnt, num))
    cnt+=1
    num = input()

Submission status: Accepted

Solution code:
import sys
cnt = 1
num = sys.stdin.readline().strip()
while num != "0":
    print("Case "+ str(cnt) +  ": " + num)
    cnt+=1
    num = sys.stdin.readline().strip()

Submission status: Accepted

Solution code:
import sys
cnt = 1

while 1:
	num=sys.stdin.readline().strip()
	if num == "0":
		break;
	print('Case {0}: {1}'.format(cnt, num))
	cnt+=1

Submission status: Accepted

Solution code:
import sys
cnt = 1

while 1:
  num=sys.stdin.readline().strip()
  if num == "0":
    break
  print('Case {0}: {1}'.format(cnt, num))
  cnt+=1

Submission status: Accepted

Solution code:
import sys
x = input()
i = 1
while x != '0':
    print('Case {0}: {1}'.format(i, x))
    x = sys.stdin.readline().strip()
    i += 1

Submission status: Accepted

Solution code:
x = input()
i = 1
while x != '0':
    print('Case {0}: {1}'.format(i, x))
    x = input()
    i += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
m = 1
n = "1"
while n != "0":
    n = input()
    if n != "0":
        print("Case " + str(m) + ": " + n)
    else:
        break
    m += 1

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
for c in range(1,10001):
    x = int(input().strip())
    if(x < 1):
        break
    print("Case {0}: {1}".format(c,x))

Submission status: Accepted

Solution code:
#!/usr/bin/python

ar = []
while True:
  i = int(input())
  if i != 0:
    ar.append(i)
  else:
    break;

for i, item in enumerate(ar):
  print("Case " + str(i+1) + ": " + str(item))

Submission status: Accepted

Solution code:
case = []
i = j = 0

while True:
    num = int(input())
    if num == 0:
        break
    case.append(num)
    i += 1

while j < i:
    print("Case",end=' ')
    print(j+1,end=': ')
    print(case[j])
    j += 1

Submission status: Accepted

Solution code:
i = 0

while True:
    n = input()
    i += 1

    if n == '0':
        break
    else:
        print('Case {:d}: {:s}'.format(i, n))

Submission status: Accepted

Solution code:
input_data = []
while 1:
	n = int(input())
	if n == 0:
		break
	input_data.append(n)
n=0
for i in input_data:
	print("Case {}:".format(n+1),"{}".format(input_data[n]))
	n+=1

Submission status: Accepted

Solution code:
c=1
while True:
    s=input()
    if s=='0':
        break
    else:
        print("Case "+str(c)+": "+s)
    c=c+1

Submission status: Accepted

Solution code:
import sys
a = 1

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
i = 1
while True:
     x = int(input())
     if x == 0: break
     print('Case {}: {}'.format(i, x))
     i += 1

Submission status: Accepted

Solution code:
for i in range(10000):
    x = int(input())
    if x == 0:
        break
    print("Case {0}: {1}".format(i+1,x))

Submission status: Accepted

Solution code:
a=0
for i in range(10000):
  a+=1
  N=int(input())
  if N == 0:
    break
  print('Case {0}: {1}'.format(a,N))

Submission status: Accepted

Solution code:
for i in range(10000):
    x = int(input())
    if x == 0: break
    print("Case %d: %d" % (i+1, x))

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(input())
    if x == 0:
        break
    else:
        print("Case "+str(i)+": "+str(x))
        i += 1

Submission status: Accepted

Solution code:
i,x=1,input()
while x !='0':
	print("Case {}:".format(i),x)
	i+=1;x=input()

Submission status: Accepted

Solution code:
i = 1

while True:

 x=int(input())
 if x==0:
  break
 print("Case {0}: {1}".format(i,x))
 i+=1

Submission status: Accepted

Solution code:
for i in range(10000):
    x = int(input())
    if x == 0:
        break
    
    print("Case %d: %d"%(i+1, x))

Submission status: Accepted

Solution code:
#! python3

i = 1
while True:
  x = int(input())
  if x == 0:
    break
  print('Case %d: %d' % (i, x))
  i += 1

Submission status: Accepted

Solution code:
for i in range(10000):
    x=int(input())
    print("Case {0}: {1}".format(i+1,x))
    if x==0:
        break

Submission status: Accepted

Solution code:
k = 0
while True:
    i = input()
    k = k + 1
    if i == "0":
        break
    else:
        print("Case {}: {}".format(k,i))

Submission status: Accepted

Solution code:
count = 0
while True:
	count += 1
	x = int(input())
	if x == 0:
		break
	else:
		print("Case %d: %d" % (count, x))

Submission status: Accepted

Solution code:
loop = 1
while True:
	x = input()
	if x == '0':
		break
	else:
		print('Case {0}: {1}'.format(loop,x))
		loop += 1

Submission status: Accepted

Solution code:
def PrintTestCase():
    for i in range(1,10001):
        x = int(input())
        if x==0:break
        print("Case {0}: {1}".format(i,x))
PrintTestCase()

Submission status: Accepted

Solution code:
for i in range(1,10001):
	data=int(input())
	if data==0:
		break
	print("Case {0}: {1}".format(i,data))

Submission status: Accepted

Solution code:
count = 1
while True:
    x = input()
    if int(x) == 0:
        break
    else:
        print('Case ' + str(count) + ': ' + str(x))
        count += 1

Submission status: Accepted

Solution code:
import sys
cnt = 1
for x in sys.stdin:
    i= int(x)
    if i == 0: break
    print('Case '+repr(cnt)+': '+repr(i))
    cnt+=1

Submission status: Accepted

Solution code:
import sys

t = 1

for line in sys.stdin:
  x = int(line)

  if x == 0:
    break

  print("Case {}: {}".format(t, x))

  t += 1

Submission status: Accepted

Solution code:
import sys
count = 1
while True:
  x = sys.stdin.readline().strip()
  if x == "0":
    break
  print("Case %d: %s" %(count,x))
  count = count + 1

Submission status: Accepted

Solution code:
l=[]
x=1
while x > 0 and (len(l)-1) < 10000:
    x = int(input())
    l.append(x)


for i in range(len(l)-1):
    print("Case "+str(i+1)+": " +str(l[i]))

Submission status: Accepted

Solution code:
x = []

while(1):
	num = int(input())
	if(num == 0):
		break
	x.append(num)

for i in range( len(x) ):
	print 'Case '+str(i+1)+':', x[i]

Submission status: Accepted

Solution code:
x_data=[]
while True:
    x=int(input())
    if x==0:
        break
    else:
        x_data.append(x)

for i, num in enumerate(x_data):
    print("Case {0}: {1}".format(i+1,num))

Submission status: Accepted

Solution code:
### 17.07.2017
n = []
while (True):
	x = int(input())
	if x == 0:
		break
	n.append(int(x))
a = 0
for i in n:
	print('Case ',a+1, ': ', n[a], sep='')
	a += 1

Submission status: Accepted

Solution code:
t=[]
while True:
    x = str(input(""))
    if x == "0":
        break
    else:
        t.append(x)
for i,v in enumerate(t):
    print("Case",str(i+1)+":",t[i])

Submission status: Accepted

Solution code:
import sys
count = 1
while True:
    x = sys.stdin.readline().strip()
    if x == "0":
        break
    print("Case {0}: {1}".format(count,x))
    count += 1

Submission status: Accepted

Solution code:
i=1
while 1:
	x=input()
	if x==0:
		break
	print "Case {0}: {1}".format(i,x)
	i = i+1

Submission status: Accepted

Solution code:
t=[]
while True:
    x = str(input(""))
    if x == "0":
        break
    else:
        t.append(x)
for i,v in enumerate(t):
    print("Case",str(i+1)+":",v)

Submission status: Accepted

Solution code:
c = 1
while True:
	x = int(input())
	if x == 0:
		break
	print("Case {0}: {1}".format(c, x))
	c += 1

Submission status: Accepted

Solution code:
li = []

while True:
    try:
        s = input()
        if s == '0':
            break
        li.append(s)
    except EOFError:
        break

num = 1
for x in li:
    print('Case '+str(num)+': '+x)
    num +=1

Submission status: Accepted

Solution code:
memo = []
i = 1
while(True):
    meemo = input()
    if meemo is "0":
        break
    else:
        memo.append(meemo)
for Case in memo:
    print("Case "+ str(i) + ": "+ Case)
    i += 1

Submission status: Accepted

Solution code:
a = []
while True:
	n = input()
	if n == "0":
		break
	a.append(n)

for i in range(len(a)):
	print("Case " + str(i + 1) + ": " + a[i])

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(raw_input())
    if x == 0:
        break
    else:
        print("Case " + str(i) + ": " + str(x))
        i += 1

Submission status: Accepted

Solution code:
i = 0
ret = []
while True:
    i += 1
    n = input()
    if n == 0:  
        break
    ret += ["Case {0}: {1}".format(i, n)]

for x in ret:
    print(x)

Submission status: Accepted

Solution code:
i = 1
while True:
    inputted_str = int(input())
    if inputted_str != 0:
        print("Case {}: {}".format(i, inputted_str))
        i += 1
    else:
        break

Submission status: Accepted

Solution code:
for i in range(1,10005):
    x = int(input())
    if x == 0:
        break
    print("Case " + str(i) + ": " + str(x))

Submission status: Accepted

Solution code:
num = []
while True:
    n = int(input())
    if n == 0:
        break
    else:
        num.append(n)


for i, n in enumerate(num):
    i = i+1
    print('Case '+ str(i) + ': ' + str(n))

Submission status: Accepted

Solution code:
i = 1
while True :
	x = int(input())
	if x == 0 :
		break
	print("Case {0}: {1}".format(i,x))
	i+=1

Submission status: Accepted

Solution code:
i = 0
while True:
    x = int(input())
    if(x == 0):
        break
    print("Case {}: {}".format(i+1,x))
    i+=1

Submission status: Accepted

Solution code:
i = 0
x = int(input())
while x!=0:
    print("Case {0}: {1}".format(i+1,x))
    i += 1
    x = int(input())

Submission status: Accepted

Solution code:
x = 10000
i = 1
while x:
    x = input()
    if x == "0":
        break
    print("Case {}: {}".format(i, x))
    i += 1

Submission status: Accepted

Solution code:
i = 1
while(True):
    x = int(input())
    if(x == 0):
        break
    print("Case {0}: {1}".format(i,x))
    i += 1

Submission status: Accepted

Solution code:
i=1
while(1):
    n=input()
    if(int(n)==0):
        break
    else:
        print('Case '+str(i)+': '+n)
        i+=1

Submission status: Accepted

Solution code:
i=0
while True:
    a = int(input())
    if a == 0:
        break
    i += 1
    print("Case {}: {}".format(i,a))

Submission status: Accepted

Solution code:
i = 0                                                                           
while 1:
    x = raw_input()
    if x == "0":
        break
    i += 1
    print "Case {}: {}".format(i,x)

Submission status: Accepted

Solution code:
i = 1;
while True:
	x = int(input());
	if x == 0:
		break;
	print('Case ' + str(i) + ': ' + str(x));
	i += 1;

Submission status: Accepted

Solution code:
i = 0
sort = []
while True:
    sort.append(int(input()))
    if sort[i] == 0:
        del sort[i]
        break
    i += 1
for i in range(len(sort)):
    print('Case {}: {}'.format(i + 1, sort[i]))

Submission status: Accepted

Solution code:
i=1
while True:
    a = int(input())
    if a==0:
        break
    else:
        print("Case {}: {}".format(i,a))
    i += 1;

Submission status: Accepted

Solution code:
import sys 

cnt =1

while 1:
    x = sys.stdin.readline().strip()
    if x == "0":
        break

    print("Case %d: %s"%(cnt,x))
    cnt+=1

Submission status: Accepted

Solution code:
# Aizu Problem ITP_1_3_B: Test Cases
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


case = 0
while True:
    x = int(input())
    if x == 0:
        break
    case += 1
    print("Case %d: %d" % (case, x))

Submission status: Accepted

Solution code:
data = []
while True:
    s = int(input())
    if s == 0:
        break
    else:
        data.append(s)

for i in range(len(data)):
    print('Case {}: {}'.format(i+1,data[i]))

Submission status: Accepted

Solution code:
count=1
while True:
    x=int(input())
    if x ==0 :
        break
    print("Case {0}: {1}".format(count,x))
    count += 1

Submission status: Accepted

Solution code:
input_list = []
flag = True

while flag:
    input_value = input()

    if input_value == "0":
        flag = False

    input_list.append(input_value)


for i in range(0, len(input_list)-1):
    print("Case {0}: {1}".format(i+1, input_list[i]))

Submission status: Accepted

Solution code:
i = 0

while True:
    i += 1
    x = input()
    if x == 0:
        break
    print('Case {}: {}'.format(i, x))

Submission status: Accepted

Solution code:
import sys
x = [int(i) for i in sys.stdin.readlines()]

for i, p in enumerate(x):
    if p == 0:
        break
    else:
        print("Case {0}: {1}".format(i+1, p))

Submission status: Accepted

Solution code:
a=1
while True:
  x=raw_input()
  if x!='0':
    
    print('Case '+str(a)+': '+x)
    a+=1
  elif x=='0':
    break

Submission status: Accepted

Solution code:
c=1
while True:
    i = input()

    if(i=="0"):
        break
    print("Case "+str(c)+": "+i)
    c+=1

Submission status: Accepted

Solution code:
count = 0
while True:
    x=raw_input()
    count += 1
    if x == '0':
      break
    print('Case ' + str(count) + ': ' + x)

Submission status: Accepted

Solution code:
count = 0

while True:  
 
  x = raw_input()
  
  count += 1
   
  if x == '0':
    break
    
  print('Case ' + str(count) + ': ' + x)

Submission status: Accepted

Solution code:
ret = []
while True:
    n = input()
    if n == 0:
        break
    ret += [n]

for i, x in enumerate(ret):
    print 'Case %d: %d' % (i+1, x)

Submission status: Accepted

Solution code:
ret = []
while True:
    n = input()
    if n == 0:
        break
    ret += [n]

for i, x in enumerate(ret):
    print 'Case %d: %d' % (i+1, x)

Submission status: Accepted

Solution code:
ret = []
while True:
    n = input()
    if n == 0:
        break
    ret += [n]

for i, x in enumerate(ret):
    print ('Case %d: %d' % (i+1, x))

Submission status: Accepted

Solution code:
i = 0
while True:
    i, n = i+1, input()                   
    if n == 0:
        break
    print 'Case %d: %d' % (i, n)

Submission status: Accepted

Solution code:
i = 0
while True:
    i, n = i+1, input()               
    if n == 0:
        break
    print 'Case %d: %d' % (i, n)

Submission status: Accepted

Solution code:
n = 0
while True:
    data = input()
    v = int(data)
    if (v <= 0):
        break
    n = n + 1
    print("Case %d: %d" % (n, v))

Submission status: Accepted

Solution code:

for i in range(1,100000):
    str = input()
    if str is "0":
        break
    print("Case {0}: {1}".format(i, str))
    i += 1

Submission status: Accepted

Solution code:
x = input()
n = 1

while x != "0":
	print("Case {}: {}".format(n, x))
	n += 1
	x = input()

Submission status: Accepted

Solution code:
b = 1
while 1:
    x = int(input())
    if x == 0:
        break
    print "Case " + str(b) + ": " + str(x)
    b += 1

Submission status: Accepted

Solution code:
count = 1

while True :
    num = input()
    if num == str("0") :
        break
    print("Case " + str(count) + ": " +str(num))
    count += 1

Submission status: Accepted

Solution code:
cnt = 0
while True :
    x = input()
    if x == "0" :
        break
    cnt = cnt + 1
    print("Case " + str(cnt) + ": " + x)

Submission status: Accepted

Solution code:
idx = 0
work = int(input())
I = str(work) + ','
while work != 0:
    work = int(input())
    I += str(work) + ','
    idx += 1

O = I.split(',')

i = 0
while i < idx:
    print("Case " + str(i + 1) + ": " + O[i])
    i += 1

Submission status: Accepted

Solution code:
import sys
a = sys.stdin
i = 1
for line in a:
    if(int(line) == 0):
        break
    print('Case {0}: {1}'.format(i,line),end="")
    i += 1

Submission status: Accepted

Solution code:
x = int(input())
i = 1
while x != 0:
    print("Case %d: %d" % (i, x))
    i += 1
    x = int(input())

Submission status: Accepted

Solution code:
i=1
while True:
    s=int(input())
    if s==0:
        break
    print('Case', str(i)+':', s)
    i+=1

Submission status: Accepted

Solution code:
i=1;count=1
while 1:
    i=input()
    i=int(i)
    if i==0:
        break
    print("Case {0}: {1}".format(count,i))
    count+=1

Submission status: Accepted

Solution code:
c = 1
x = input()
while x != "0":
    print("Case {}: {}".format(c, x))
    x = input()
    c += 1

Submission status: Accepted

Solution code:
i=1

while True:
  a=int(input())
  if 1<=a<=10000:
    print("Case"+" "+str(i)+":"+" "+str(a))
    i+=1

  else:
      break

Submission status: Accepted

Solution code:
from itertools import count

for i in count(1):
    s = input()

    if s == "0":
        break
    else:
        print("Case {}: {}".format(i, s))

Submission status: Accepted

Solution code:
count = 1
 
while True:
    num = input()
    if num == str("0"):
        break
    print("Case " + str(count) + ": " +str(num))
    count += 1

Submission status: Accepted

Solution code:
nums=[]
while True:
    num=input()
    num=int(num)
    if num==0:
        break
    nums.append(num)
for i in range(0,len(nums)):
        print('Case %s: %s'%(i+1,nums[i]))

Submission status: Accepted

Solution code:
x = []
for k in range(10000):
    n = input()
    if n == "0":
        break
    x.append(int(n))
i = 1
for j in x:
    int_j = int(j)
    if int_j != 0:
        print("Case", str(i)+":", int_j)
        i += 1
    else:
        break

Submission status: Accepted

Solution code:
import sys
for m, n in enumerate(sys.stdin):
    if int(n) == 0:
        break
    print('Case {}: {}'.format(m+1, int(n)))

Submission status: Accepted

Solution code:
i = 0
while 1:
	i += 1
	test = input()
	if test == "0":
		break
	print("Case " + str(i) + ": " + test)

Submission status: Accepted

Solution code:
i=0
x=int(input())
while x != 0:
 i = i+1
 print("Case " + str(i) + ": " + str(x))
 x=int(input())

Submission status: Accepted

Solution code:
# (c) midandfeed
i = 1
while(True):
	temp = int(input())
	if (temp != 0):
		print("Case {}: {}".format(i, temp))
	else:
		break
	i += 1

Submission status: Accepted

Solution code:
import sys
for i, x in enumerate(sys.stdin):
    x = x.strip()
    if x == '0':
        break
    print('Case %d: %s'%(i+1, x))

Submission status: Accepted

Solution code:
array = []
x = input()

while x != "0" :
    array.append(x)
    x = input()

for i in range(len(array)):
    print("Case " + str(i + 1) + ": " + array[i])

Submission status: Accepted

Solution code:
import sys
sum = 1;
for i in sys.stdin:
    x = i.strip()
    if x != "0":
        print('Case {}: {}'.format(sum, x))
        sum+= 1
    else:
        break

Submission status: Accepted

Solution code:
x = [0]
for i in range(1,10001):
    k = int(input())
    if k == 0:
        break
    else:
        x.append(k)

n = len(x)

for j in range(1,n):
    print('{0}{1}{2}{3}'.format('Case ',j,': ',x[j]))

Submission status: Accepted

Solution code:
for i in range(20000):
    x = input()
    
    if x=="0":
        break
    
    else:
        print ("Case " + str(i+1) + ": " + str(x))

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(input())
    if x == 0:
        break
    print('Case %d: %d' % (i, x))
    i += 1

Submission status: Accepted

Solution code:
#x = []
i = 0
while True:
	x = int(input())
	if x == 0:
		break
	print("Case " + str(i+1) + ": " + str(x))
	i += 1

Submission status: Accepted

Solution code:
import sys

inputs = sys.stdin.read()
inputs = inputs.strip().split("\n")

for index, num in enumerate(inputs):
    if num == "0":
        break 
    print "Case %d: %s" %(index+1, num)

Submission status: Accepted

Solution code:
import sys
cnt = 1
while True:
    x = sys.stdin.readline().strip()
    if x == "0":
        break
    print("Case {}: {}".format(cnt,x))
    cnt += 1

Submission status: Accepted

Solution code:
indata = []

indata.append(int(input()))

i = 0

while(indata[i] != 0):
    indata.append(int(input()))
    i += 1

for i in range(len(indata)):
    if indata[i] != 0:
        print("Case {0}: {1}".format((i+1),indata[i]))

Submission status: Accepted

Solution code:
count = 1
while(True):
    inp = input()
    if inp == '0':
        break
    print('Case ' + str(count) + ': ' + inp)
    count+=1

Submission status: Accepted

Solution code:
cnt = 1
while True:
    num = int(input())
    if num == 0:
        break
    print("Case", str(cnt) + ":", num, sep = " ")
    cnt += 1

Submission status: Accepted

Solution code:
cnt = 1
while True:
    case = input()
    if case == "0":
        break
    print("Case {}: {}".format(cnt, case))
    cnt += 1

Submission status: Accepted

Solution code:
import sys
cnt=1
while 1:
 x=sys.stdin.readline().strip()
 if x== '0':
  break;
 print("Case %d: %s"%(cnt,x))
 cnt+=1

Submission status: Accepted

Solution code:
i = 1
a = input()
while int(a) != 0:
    print("Case "+str(i)+": "+a)
    i += 1
    a = input()

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(input())
    if x == 0:
        break
    print("Case {0}: {1}".format(i, x))
    i += 1

Submission status: Accepted

Solution code:
flag=0
i=0
while flag==0:
    num=int(input())
    if num==0 or num=="":
        flag=1
    else:
        print("Case {0}: {1}".format(i + 1, num))
        i = i + 1

Submission status: Accepted

Solution code:
flag=0
i=0
while flag==0:
    num=int(input())
    if num==0:
        flag=1
    else:
        print("Case {0}: {1}".format(i + 1, num))
        i = i + 1

Submission status: Accepted

Solution code:
c = 1
while True:
    i = int(input())
    if i == 0:
        break
    print('Case %d: %d' % (c, i))
    c += 1

Submission status: Accepted

Solution code:
i=0
while True:
    n = input()
    i+=1
    if n == 0:
        break
    print ("Case %d: %d" % (i,n))

Submission status: Accepted

Solution code:

newArray = []
x = input()
while x != "0":    
    newArray.append(x)
    x = input()
for i in range(len(newArray)):
    print("Case " + str(i + 1) + ": " + newArray[i])

Submission status: Accepted

Solution code:
n=[]
line=''
while line != '0':
    line=input()
    if line != '0': n.append(int(line))
for x in range(len(n)): print('Case %d: %d'%(x+1, n[x]))

Submission status: Accepted

Solution code:
import sys
def main():
    a = []
    for line in sys.stdin:
        x = int(line)
        if x == 0:
            break
        else:
            a.append(x)
    for i in range(len(a)):
        print("Case", i + 1, end = "")
        print(":", a[i])   


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
v = int(raw_input())
i = 1
while v != 0:
  print("Case " + str(i) + ": " + str(v))
  v = int(raw_input())
  i = i+1

Submission status: Accepted

Solution code:
cnt = 1
while True:
	num = int(raw_input())
	if num == 0:
		break
	else:
		print("Case {0}: {1}".format(cnt, num))
		cnt += 1

Submission status: Accepted

Solution code:
i = 1
while True:
  n = input()
  if n == "0":
    break
  print("Case {0}: {1}".format(i,n))
  i += 1

Submission status: Accepted

Solution code:
def main():

    index = 1
    while True:
        num = int(input())
        if num == 0:
            break
        else:
            print('Case %d: %d' % (index, num))
            index += 1


main()

Submission status: Accepted

Solution code:
i = 0
while True:
    n = int(input())
    if n == 0: 
        break
    else:
        i += 1
    print("Case " + str(i) + ": " + str(n))

Submission status: Accepted

Solution code:
newArray = []
 
x = input()
 
while x != "0":    
    newArray.append(x)
    x = input()
 
for i in range(len(newArray)):
    print("Case " + str(i + 1) + ": " + newArray[i])

Submission status: Accepted

Solution code:
a = []
 
x = input()
 
while x != "0":    
    a.append(x)
    x = input()
 
for i in range(len(a)):
    print("Case " + str(i + 1) + ": " + a[i])

Submission status: Accepted

Solution code:
i = 1

while True:
    x = input()
    if x == '0':
        break
    print('Case %d: %s' % (i, x) )
    i += 1

Submission status: Accepted

Solution code:
a=1
while True:
    x=input()
    if x=="0":
        break
    print("Case "+str(a)+": "+str(x))
    a+=1

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_B&lang=jp

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    count = 1
    while True:
        x = int(input())
        if x == 0:
            break
        print('Case {}: {}'.format(count, x))
        count += 1


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
for i in range(10000):
  line = int(input())
  if line == 0:
    break
  print('Case {}: {}'.format(i+1, line))

Submission status: Accepted

Solution code:
import sys
cnt = 1
while 1:
    x=sys.stdin.readline().strip()
    if x == '0':
        break;
    print("Case %d: %s"%(cnt,x))
    cnt+=1

Submission status: Accepted

Solution code:
i = 0
while 1:
    x = input()
    i += 1
    if x == '0':
        break
    print ('Case %s: %s' % (i,x))

Submission status: Accepted

Solution code:
for i in range(1, 10001):
    x=int(input())
    if x==0:
        break
    else:
        print('Case'+' '+str(i)+':'+' '+str(x))

Submission status: Accepted

Solution code:
for i in range(1,10001):
    x=int(input())
    if x==0:
        break
    else:
        print('Case'+' '+str(i)+':'+' '+str(x))

Submission status: Accepted

Solution code:
def main() :
    count = 1
    while True :
        n = input()
        if n == '0' :
            break
        else :
            print("Case {}: {}".format(count, n))
            count += 1


if __name__ == '__main__' :
    main()

Submission status: Accepted

Solution code:
# -*-coding:utf-8

import fileinput
import math

def main():
    i = 1
    while True:
        inputData = int(input())

        if (inputData == 0):
            break
        else:
            print('Case %d: %d' % (i, inputData))
            i += 1

if __name__ == '__main__':
    main()