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:
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
#a = open("test.txt", "r")
a = sys.stdin
 
count = 1
for line in a:
    if int(line) == 0:
    	break
    print("Case {0}: {1}".format(count, line), end="")
    count = count + 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
line = 999
prm = list()
while line != 0 :
    line = int(sys.stdin.readline())
    prm.append(line)

for i in range(len(prm)):
    if prm[i] == 0 :
        break
    print 'Case ' + str(i+1) + ': ' + str(prm[i])

Submission status: Accepted

Solution code:
(lambda *_: None)(
    *map(print,
         map('Case {0[0]}: {0[1]}'.format,
             enumerate(iter(input, '0'), 1))))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1
flag = True
while flag:
    
    x = int(raw_input())
    if x != 0:
        print 'Case %s: %s' % (i,x)
        i += 1
    else:
        flag = False

Submission status: Accepted

Solution code:
nums = []
num = input()

while num != 0:
	nums.append(num)
	num = input()

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

Submission status: Accepted

Solution code:
x = input()
x = int(x)
num = 1

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

Submission status: Accepted

Solution code:
a=[]
while True:
	b=input()
	if b==0:
		break
	a.append(b)
i=0
for num in a:
	print 'Case {0}: {1}'.format(i+1,num)
	i+=1

Submission status: Accepted

Solution code:
i = 0
a = []
while True:
    x = raw_input().split()
    if int(x[0]) == 0:
        break
    else:
        a.append(x)
f=[]    
for j in range(len(a)):
    f = str(j+1)+":"
    print "Case",f, " ".join(map(str,a[j]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1
n = 1
while n != 0:
	n = int(raw_input())
	if n == 0:
		continue
	print "Case %d: %d" %(i, n)
	i += 1

Submission status: Accepted

Solution code:
cases = []
n = 1
while n != 0:
	n = int(raw_input())
	if n == 0:
		continue
	cases.append(n)


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
case = 1
x = input()

while(x!=0):
	print "Case %d: %d" % (case, x)
	x = input()
	case += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = []
while True:
    tmp = input()
    if tmp == 0:
        break
    a.append(tmp)
for x in xrange(0,len(a)):
    print "Case "+str(x+1)+": " + str(a[x])

Submission status: Accepted

Solution code:
# encoding:utf-8
count = 1
while True:
	input = raw_input()
	if input == "0":
		break
	text = "Case " + ": ".join(map(str, (count, input)))
	print(text)
	count += 1

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:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

x_list = []
while True:
    x = int(raw_input())
    if x == 0:
        break
    else:
        x_list.append(x)

for i, x in enumerate(x_list, 1):
    print("Case %d: %d") % (i, x)

Submission status: Accepted

Solution code:
count = 0

while True:

	count += 1
	num = int(input())

	if num == 0:

		break

	print("Case", str(count) + ":", num)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = input()
counter=1
while data != 0:
    print("Case %d: %d" % (counter, data))
    data = input()
    counter+=1

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:
nums = []
while True:
    num = int(raw_input())
    if num == 0:
        break
    nums.append(num)
for i in range(0,len(nums)):
    print "Case " + str(i+1) + ": " + str(nums[i])

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 = 1
while True:
    x = int(input())
    if (x == 0):
        break
    print('Case {0}: {1}'.format(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:
count=1
while True:
    x=int(input())
    if x==0:
        break
    print("Case "+str(count)+": "+str(x))
    count+=1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

x = []
while ( 1 ):
    
    temp = int( input() )
    
    if (temp == 0):
        break

    x.append(temp)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i=0
while 1:
    i+=1
    case=input()

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

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 = 1
while True:
    n = input()
    if n != 0:
        print 'Case %s: %s' % (str(i), str(n))
        i = i + 1
    else:
        break

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 %s: %s" % (i,x)

Submission status: Accepted

Solution code:
i = 1
while(1):
  x = int(raw_input())

  if x == 0:
    break

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i=0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = -100
i = 1
while n != 0:
   n = int(raw_input())
   if n != 0:
      print 'Case %d: %d' %(i,n)
      i = i + 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 = 1

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

Submission status: Accepted

Solution code:
i=0

while True:
    i=i+1 
    k=int(raw_input())

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

Submission status: Accepted

Solution code:
import sys
 
c = 0
for line in sys.stdin:
	if line[0] == '0':
		break
	c+=1
	print 'Case %s: %s' %(c,line),

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = []
i = 0

while True:
  n.append(int(input()))
  if n[i] == 0:
    break
  i += 1

for j in range(i):
  print("Case " + str(j+1) + ": " + str(n[j]))

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import fileinput
for i, line in enumerate(fileinput.input()):
    x = line.strip()
    if x != '0':
        print "Case %d: %s" % (i + 1, x)
    else:
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=[]
while 1:
    num=raw_input()
    if num=="0":
        break
    else :
        n.append(num)
for i in xrange(len(n)):
    print("Case "+str(i+1)+": "+n[i])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: UTF-8

l = raw_input()

a = int(l)
x = 1

while a != 0:
	print "Case %d: %d" %(x,a)
	x += 1

	l = raw_input()
	a = int(l)
	if l == 0:
		print "end"

Submission status: Accepted

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

for i, item in enumerate(Ns):
	print "Case {0}: {1}".format(i + 1, Ns[i])

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:
cnt = 1
while 1:
	x=int(input())
	if x == 0:
		break;
	print("Case %d: %d"%(cnt,x))
	cnt+=1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i, x in enumerate(iter(lambda: int(input()), 0), 1):
  print ("Case {}: {}".format(i, x))

Submission status: Accepted

Solution code:
for i, x in enumerate(iter(lambda: input(), "0"), 1):
  print ("Case {}: {}".format(i, x))

Submission status: Accepted

Solution code:
#coding:utf-8

L = []
x = 1
y = 2
while x < y:
    a = input()
    if a == 0:      #0?????\?????????????????§??°?????????
        break
    else:
        L.append(a)

for i in xrange(len(L)):
    print("Case " + str(i + 1) + ": " + str(L[i]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys

i = 0
for line in sys.stdin:
    if line[0] == "0":
        break
    i += 1
    print "Case %s: %s" %(i, line),

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
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:
class PrintTestCases:
    def __init__(self):
        self.i = 1

    def output(self, x):
        print "Case %d: %d" % (self.i, x)
        self.i += 1

if __name__ == "__main__":
    ptc = PrintTestCases();
    while True:
        x = int(raw_input())
        if x == 0:
            break
        ptc.output(x)

Submission status: Accepted

Solution code:
i = 0
d = 0

while d == 0:
    x = input()
    if x != 0:
        i += 1
        print("Case %d: %d" %(i, x))
    else:
        d = 1

Submission status: Accepted

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

Submission status: Accepted

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

for i,v in enumerate(a):
    print "Case "+str(i+1)+": " + str(v)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = []
while True:
	if 0 in x:
		break
	x.append(int(input()))
x.pop()
for i, v in enumerate(x):
	print(('Case %d: %d') % (i+1, v))

Submission status: Accepted

Solution code:
a=input()
i=0
j=""
Case="Case"
while a>0 or a<0:
        i+=1
        print Case,
        print str(i)+":",
        print a
        a=input()

Submission status: Accepted

Solution code:
i = 0

while True:
    inp = int(raw_input())
    if inp == 0:
        break
    i += 1
    print "Case "+str(i)+": "+str(inp)

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
count =1
flag = True
while flag:
    x = int(input())
    if x == 0:
        break
    else:
        print("Case {0}: {1}".format(count,x))
        count +=1

Submission status: Accepted

Solution code:
import sys

s = sys.stdin

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

Submission status: Accepted

Solution code:
input_array = []

while True:
    input_num = int(raw_input())
    if input_num == 0:
        break
    input_array.append(input_num)

for x in range(0, len(input_array)):
    print("Case {}: " + str(input_array[x])).format(x+1)

Submission status: Accepted

Solution code:
import sys

i = 1
while(True):
    x = int(sys.stdin.readline())
    if(x == 0):
        break
    print("Case %d: %d" % (i, x))
    i += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 06-Repetitive_Processing-Print_Test_Cases.py

# ???????????±???????????????
# ????????????????????£????????§?????????????????????????????°??????????????°?????\??????????????????????????????????????£????????????????????£???????????????????????????????????????
# ???????????\????????????????????????????????°???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????´???????????§??????

# ???????????´??° x ???????????????????????????????????????????????????????????°?????????????????????????????????
# ?????????????????????????????\?????????????????????????????????????????????????????????????????????????????¨?????¨?????????????????????

# Input
# ??\???????????°????????????????????????????§????????????????????????????????????????????????????????????´??° x ??????????????????????§?????????????????????????
# x ??? 0 ?????¨?????\?????????????????????????????????????????????????????????????????????????????£????????????????????????
# Output
# ??????????????????????????¨????????\????????¢?????§ x ???????????????????????????

# Case i: x
# ????????§???i ?????????????§????????????????????????????????????????????????????Case??¨?????? i?????????????????????????????\??????????????????
# ?????????:?????????????????¨??´??° x ?????????????????????????????\????????????????????????????????\????????????????????????????????????

# 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

data=[]
i=0

# print("Input.")
while 1:
	data.append(int(input()))
	if data[i]==0:
		break;
	i=i+1

j=i

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8
# ??\??????????????´??°?????????

i = 1
x = 1
while x != 0:
    x = input()
    if x == 0:
        break

    print "Case " + str(i) +": " + str(x)
    i += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
num = 0

while 1:
    x = sys.stdin.readline().strip()
    if x == "0":
        break
    num = num + 1
    print("Case " + str(num) + ": " + x)

Submission status: Accepted

Solution code:
import sys
num = 0
while 1:
    x = sys.stdin.readline().strip()
    if x == "0":
        break
    num = num + 1
    print("Case " + str(num) + ": " + 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:
c = 0
while True:
	x = int(input()); c += 1
	if x == 0: break
	print("Case {}: {}".format(c, x))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main(): 
	nums = []
	while True:
		x = int(input())
		if x == 0:
			break
		nums.append(x)
	for i in range(len(nums)):
		print("Case %d: %d" % (i + 1, nums[i]))
	
if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i=1
while True:
    x=int(input())
    if x==0:
        break
    else:
        print("Case {0}: {1}".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:
a = []
while True:
    n = int(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:
a = input()
for i in xrange(10000) :
    print "Case " + str(i+1) + ": " + str(a)
    a = input()
    
    if (a == 0) :
        break

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:
count = 0
while(True):
        num = int(input())
        if num == 0:
                break
        count += 1
        print("Case {0}: {1}".format(count,num))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

count = 0
num = []
while True:
	x = int(input())
	if x == 0 :
		break
	num.append(x)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
import sys

line = sys.stdin

count = 1
for x in line :
	if int(x) == 0 :
		break
	print('Case {0}: {1}'.format(count, x), end='')
	count += 1

Submission status: Accepted

Solution code:
# coding: utf-8
import sys

line = sys.stdin

count = 1
for x in line :
	if int(x) == 0 :
		break
	print('Case {0}: {1}'.format(count, x.strip()))
	count += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
b = []
i = 1
while 1:
    x = int(input())
    b.append(x)
    if x == 0:
        break

for x in b:
    if x == 0:
        break
    print("Case ", (i), ': ', (x), sep='')
    i += 1

Submission status: Accepted

Solution code:
a =[]
x = 1
while x > 0:
    x = int(input())
    a.append(x)
for i in range(0,len(a)-1):
    print('Case ',i+1,': ',a[i],sep='')

Submission status: Accepted

Solution code:
count = 1

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

    else:
        break

Submission status: Accepted

Solution code:
count =1

while True:

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

Submission status: Accepted

Solution code:
count = 1

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

Submission status: Accepted

Solution code:
count = 1

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

    else:
        break

Submission status: Accepted

Solution code:
count = 1

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

    else:
        break

Submission status: Accepted

Solution code:
count = 1

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

    else:
        break

Submission status: Accepted

Solution code:
count = 1

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

Submission status: Accepted

Solution code:
count = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lis = []
a = int(raw_input())
while a != 0:
 lis.append(a)
 a = int(raw_input())

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

Submission status: Accepted

Solution code:
lis = []
a = raw_input()
while a != '0':
 lis.append(a)
 a = raw_input()

for i,v in enumerate(lis):
 print "Case %d: %s" % (i+1,v)