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:
i = 1
while True:
    a = int(input())
    if(a == 0):
        break
    else :
        print(f'Case {i}: {a}')
    i += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for j in range(1, 10001):
    i = int(input())
    if i == 0:
        break
    print(f'Case {j}: {i}')

Submission status: Accepted

Solution code:


i = 1
while True:
    x = int(input())
    if(x == 0):
        break
    print(f'Case {i}: {x}')
    i += 1

Submission status: Accepted

Solution code:
nyuryoku = []

try:
    while True:
        s = input()
        if s == 0:
            break
        nyuryoku.append(s)

except EOFError:
    pass

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

Submission status: Accepted

Solution code:
for i in range(1, 10001):
    inpu = int(input())
    if inpu == 0:
        break
    else:
        print("Case %d: %d" % (i, inpu))

Submission status: Accepted

Solution code:
ans = []
for i, x in enumerate(open(0).readlines()):
    ans.append("Case %d: %s" % (i+1, x))
open(1,'w').writelines(ans[:-1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans = []
for i, x in enumerate(open(0).readlines()):
    ans.append("Case %d: %s" % (i+1, x))
open(1,'w').writelines(ans[:-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
array = []
x = input()
while x != "0":
    array.append(x)
    x = input()
for i, x in enumerate(array):
    print("Case %d: %s" % (i + 1, x))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

caseIndex = 1
while True:
    x = int(stdin.readline().rstrip())
    if x != 0:
        print("Case %d: %d" % (caseIndex, x))
        caseIndex = caseIndex+1
    else:
        break;

Submission status: Accepted

Solution code:
i = 0
while True:
    i += 1
    num = int(input())
    if num == 0:
        break
    print(f'Case {i}: {num}')

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:
count=0
while True:
    count=count+1
    a=input()
    if int(a)==0:
        break
    else:
        print("Case "+str(count)+": "+str(a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
  
l = sys.stdin.readlines()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 0

while 1: 
	i += 1
	x = input()
	if x == '0': break
	print(f"Case {i}: {x}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
integers=[]
i=0
j=0
while True:
    num=int(input())
    integers.append(num)
    if integers[i]==0:
        del integers[i]
        break
    i+=1
while j<i:
    print('Case {}: {}'.format(j+1,integers[j]))
    j+=1

Submission status: Accepted

Solution code:
count = 0
for i in range(10000):
  a = input()
  a = int(a)
  if a >= 1:
    count += 1
    print('Case '+str(count)+': '+str(a))
  else:
    break

Submission status: Accepted

Solution code:
count = 0
for i in range(10000):
  a = input()
  a = int(a)
  if a > 0:
    count += 1
    print('Case '+str(count)+': '+str(a))
  else:
    break

Submission status: Accepted

Solution code:
count = 0
for i in range(10000):
  a = input()
  a = int(a)
  if a > 0:
    count += 1
    print('Case '+str(count)+': '+str(a))
  else:
    break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

while True:
  x = input()
  if x == "0":
    break
  print ("Case " + str(i) + ": " + str(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 True:
  n = int(input())
  if n == 0:
    break
  print("Case ", i, ": ", n, sep = "")
  i = i+1

Submission status: Accepted

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

Submission status: Accepted

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

j=1
for i in a:
  print("Case %d: %d" % (j,i))
  j=j+1

Submission status: Accepted

Solution code:
numList = []

a = -1
num = 0
while a != 0:
    if a == -1:
        a = int(input())

    else:
        numList = numList + [a]
        a = int(input())
        num += 1

for i in range(num):
    print("Case %d: %d" % (i+1, numList[i]))

Submission status: Accepted

Solution code:
tmp = -1
cnt = 1
output = []
while tmp != 0:
	tmp = int(input())
	if tmp == 0:
		break
	output += ["Case " + str(cnt) + ": " + str(tmp)]
	cnt += 1

for x in output:
	print(x)

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = []
while True:
  i = str(input())
  if i == '0':
    break
  else:
    l.append(i)
t = 0
for i in l:
  t += 1
  print('Case '+str(t)+': '+i)

Submission status: Accepted

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

for i in range(len(numbers)):
  print("Case ",i+1,": ",numbers[i],sep="")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1
while True:
    factor = input()
    if factor == '0':
        break
    print('Case ', i, ': ', factor, sep='')
    i += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
for i in range(10**9):
    print("Case "+str(i+1)+": "+str(n))
    n=int(input())
    if n==0:exit()

Submission status: Accepted

Solution code:
inArray = []
while True:
    inVal = int(input())
    if inVal == 0:
        break
    inArray.append(inVal)

count = 1
for n in inArray:
    print("Case " + str(count) + ": " + str(n))
    count = count + 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
datalist = {}
Flag = True
for i in range(10000):
    if Flag:
        n = int(input())
        if n == 0:
            Flag = False
        else:
            datalist[i+1] = n
#print(datalist)
for i in range(1, len(datalist)+1):
    print("Case {}: {}".format(i, datalist[i]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
flag = "go"
cnt = 0
while flag == "go":
    cnt += 1
    x = int(input())
    if x == 0:
        flag = "stop"
    else:
        print("Case " + str(cnt) + ": " + str(x))

Submission status: Accepted

Solution code:
for i in range(1,10001):
    n = int(input())
    if n:
        print(f'Case {i}: {n}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c=1
while 1:
    n=int(input())
    if n==0:break
    print("Case",f'{c}:',n)
    c+=1

Submission status: Accepted

Solution code:
c=1
while 1:
  n=int(input())
  if n==0:break
  print("Case",f'{c}:',n)
  c+=1

Submission status: Accepted

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

Submission status: Accepted

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

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:
from sys import stdin

cnt = 0

while True:
    cnt += 1
    x = int(stdin.readline().rstrip())

    if x == 0:
        break

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
list = []
while True:
    a = int(input())
    if(a == 0): break
    else: list.append(a)
    

for i in range(len(list)):
    print("Case %d: %d" %(i+1,list[i]))

Submission status: Accepted

Solution code:
i=0
a=list()
while True :
    a=int(input())

    if a == 0:
        break

    i+=1
    print('Case %d: %d'%(i,a))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = 0

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

Submission status: Accepted

Solution code:
j=[]
while True:
    i=input()
    if i =='0':break
    j.append(i)

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

Submission status: Accepted

Solution code:
c = 1
while True:
  x = int(input())
  if x == 0:
    break
  print("Case ", c, ": ", x, sep="")
  c += 1    # c = c + 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:
c = 1
while True:
  x = int(input())
  if x == 0:
    break
  print("Case ", c, ": ", x, sep="")
  c += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list =[]
i=0
index=1

while(index != 0):
    index=int(input())
    list.append(index)
    i +=1

for i in range(0,i):
    if list[i] == 0:
        break
    print("Case",i+1,end='')
    print(":",list[i])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = 1
while True:
    a = int(raw_input())
    if a == 0:
        break
    print "Case %d: %d" % (c,a)
    c = c + 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Python 3+
#-------------------------------------------------------------------------------
import sys

#ff = open("test.txt", "r")
ff = sys.stdin

cnt = 1
for line in ff :
    if int(line) == 0 : break
    print("Case {0}: {1}".format(cnt, line), end="")
    cnt += 1

Submission status: Accepted

Solution code:
c=1
while 1:
    n=input()
    if n:print'Case %d: %d'%(c,n)
    else:break
    c+=1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cnt=1
while 1:
    x=int(raw_input())
    if x==0:
        break
    print "Case %d: %d" % (cnt,x)
    cnt+=1;

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
line = sys.stdin.readline()
n =[]
while line:
	if int(line) == 0:
		break;
	else:
		n.append(line)
	line = sys.stdin.readline()
c = 1
for i in n:
	print "Case",str(c)+":",str(i),
	c+=1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
for i,ws in enumerate(sys.stdin, 1):
    w = ws[:-1]
    if w =='0': break
    print 'Case %d: %s' % (i, w)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
for i in itertools.count(1):
    n = int(input())
    if n==0:
        break
    print('Case {}: {}'.format(i, n))

Submission status: Accepted

Solution code:
list = []
x = 1
while x > 0:
    x = input()
    if x > 0:
        list.append(x)

for i,j in enumerate(list):
  print "Case " + str(i+1) + ": " + str(j)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

i = 1

while(1):
    a = raw_input()
    if('0'==a):
        break
    else:
        print "Case %d: %s" % (i, a)
        i += 1

Submission status: Accepted

Solution code:
import sys

ff = sys.stdin
 
cnt = 1
for line in ff :
    if int(line) == 0 : break
    print("Case {0}: {1}".format(cnt, line), end="")
    cnt += 1

Submission status: Accepted

Solution code:
import sys, itertools
  
for count, input in zip(itertools.count(1), sys.stdin):
    if int(input) == 0: break
    print('Case {0}: {1}'.format(count, input), end='')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = 0
while True:
    x =int(input())
    if x == 0:
        break;

    c += 1
    print('Case', str(c) + ':', x)

Submission status: Accepted

Solution code:
c = 0
while True:
    x = int(input())
    if x == 0:
        break;

    c += 1
    print('Case', str(c) + ':', x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = 0
while True:
    x = int(input())
    if x == 0:
        break;

    c += 1
    print('Case', str(c) + ':',  x)

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:
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:
c = 1                                                                       
a = []
while True:
    x = int(input())
    if x == 0:
        break;
    else:
        a = a + [x]

for i in a:
    print('Case {0}: {1}'.format(c,i))
    c += 1

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 30 17:18:51 2015

@author: hirose
"""

#Repetitive Processing - Print Test Cases
i = 1
while 1:
    n = int(raw_input())
    if(n != 0):
        print 'Case %(1)d: %(2)d'  % {'1':i, '2':n}
        i += 1
    else:
        break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 += 1

Submission status: Accepted

Solution code:
import sys
c = 0
while True:
	x = int(sys.stdin.readline())
	if x == 0:
		break
	c+=1
	print ('Case ' + str(c)+':', x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools as itr

if __name__ == '__main__':
    for i in itr.count(1): # i = 1,2,3,...
        num = int(input())
        if num == 0: break
        print("Case {0}: {1}".format(i, num))

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
#coding:utf-8
#1_3_B 2015.3.18
i = 1
while True:
    n = input()
    if n == '0':
        break
    print('Case {}: {}'.format(i,n))
    i += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
stack = []
a=1
while not a==0:
	a=input()
	stack.append(a)
stack.remove(0)
for i, a in enumerate(stack):
	print "Case %s: %s" % (i+1,a)

Submission status: Accepted

Solution code:
import sys

i=0
while True:
	num=int( sys.stdin.readline() )
	i+=1
	if num == 0:
		break
	else:
		print( "Case {}: {}".format( i, num ) )

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

i=1
while True:
	x = int( sys.stdin.readline() )
	if 0 != x:
		print( "Case {}: {}".format( i, x) )
	else:
		break
	i += 1

Submission status: Accepted

Solution code:
import sys

i=1
while True:
    x = sys.stdin.readline().rstrip() 
    if "0" != x:
        print( "Case {}: {}".format( i, x) )
    else:
        break
    i += 1

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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:
class itp1_3b:
    def out(self,i,x):
        print "Case "+str(i)+": "+str(x)
if __name__=="__main__":
    run=itp1_3b()
    i=1
    while(True):
        
        x=input()
        if x==0:
            break
        run.out(i,x)
        i+=1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools

for i in itertools.count ( 1 ):
  d = int ( input ( ) )
  if d == 0:
    break
  print ( "Case %s: %s" % ( i, d ) )

Submission status: Accepted

Solution code:
#coding:UTF-8

i = 0
while True:
    i += 1
    x = input()
    if x == 0:
        break
    print "Case",str(i)+":",x

Submission status: Accepted

Solution code:
lst = []
num = int(input())
while num != 0:
  lst.append(num)
  num = int(input())

it = zip(range(len(lst)), lst)
for (c, v) in it:
  print("Case " + str(c+1) + ": " + str(v))

Submission status: Accepted

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


if __name__=="__main__":
	main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding=utf-8

i = 1
while True:
    x = int(raw_input().rstrip())
    if x:
        print "Case {0}: {1}".format(i, x)
        i += 1
    else:
        break

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    i = 0
    while True:
        v = int(raw_input())
        if v == 0:
            break
        i += 1
        print "Case {0}: {1}".format(i,v)

Submission status: Accepted

Solution code:
i = 0

while 1:
  x = raw_input()
  i += 1
  if x == "0":
    break
  print "Case %s: %s" % (i,x)

Submission status: Accepted

Solution code:
i = 0

while 1:
  x = raw_input()
  i += 1
  if x == "0":
    break
  print "Case %d: %s" % (i,x)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = 1

while True :
    x = input().strip()
    if x == '0' :
        break
    print('Case %s: %s'%(count,x))
    count = count + 1;

Submission status: Accepted

Solution code:
count = 1
while True:
    x = input().strip()
    if x == '0':
        break
    else:
        print('Case %s: %s' %(count, x))
        count = count + 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
arr = []
while True:
  value = int(raw_input())
  if value != 0:
    arr.append(value)
  else:
    break

count = 1
for x in arr:
  print "Case %s: %s" % (count, x)
  count += 1

Submission status: Accepted

Solution code:
import warnings


n = 0
i = 0
while (n == 0): 

	i = i + 1

	data = input()
	if(data == 0):
		break
	else:
		print "Case " + str(i) + ": " + str(data)

Submission status: Accepted

Solution code:
count = 1
while True:
    x = input().strip()
    if x == '0':
        break
    else:
        print( 'Case %s: %s' % ( count, x))
        count += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = []
while True:
    value = int(raw_input())
    if value == 0:
        break
    else:
        l.append(value)

for i, v in enumerate(l, 1):
    print("Case %d: %d") % (i, v)

Submission status: Accepted

Solution code:
list = []
while True:
  line = raw_input()
  list.append(line)
  if line == "0":
    break

i = 0
for x in list[:-1]:
  i += 1
  print "Case %d: %s" % (i, x)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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