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

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

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

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

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

Solution (Python):

for c in range(1,10001):
    x = int(input().strip())
    if(x < 1):
        break
    print("Case {0}: {1}".format(c,x))

Solution (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))

Solution (Python):
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

Solution (Python):
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

Solution (Python):
i = 0

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

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

Solution (Python):
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

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

Solution (Python):
import sys
a = 1

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

Solution (Python):
import sys
a = 1

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

Solution (Python):
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

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

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

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

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

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

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

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

Solution (Python):
i = 1

while True:

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

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

Solution (Python):


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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys

t = 1

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

  if x == 0:
    break

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

  t += 1

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

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

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

Solution (Python):
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]))

Solution (Python):
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]

Solution (Python):
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))

Solution (Python):

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

Solution (Python):
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])

Solution (Python):
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])

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

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

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

Solution (Python):
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)

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

Solution (Python):
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

Solution (Python):
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

Solution (Python):
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])

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

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

Solution (Python):
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)

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

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

Solution (Python):
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))

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

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

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

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

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

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

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

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

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

Solution (Python):
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]))

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

Solution (Python):
import sys 

cnt =1

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

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

Solution (Python):


import sys, math, os


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))

Solution (Python):
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]))

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

Solution (Python):
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]))

Solution (Python):
i = 0

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

Solution (Python):
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))

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

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

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

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

Solution (Python):
count = 0

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

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

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

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

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

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

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

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

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

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

Solution (Python):

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

Solution (Python):
x = input()
n = 1

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

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

Solution (Python):
count = 1

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

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

Solution (Python):
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

Solution (Python):
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

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

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

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

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

Solution (Python):
i=1

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

  else:
      break

Solution (Python):
from itertools import count

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

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

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

Solution (Python):
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]))

Solution (Python):
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

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

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

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

Solution (Python):

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

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

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

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

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

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

Solution (Python):
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]))

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

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

Solution (Python):

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

Solution (Python):
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)

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

Solution (Python):
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]))

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

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

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

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

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

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

Solution (Python):
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

Solution (Python):
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

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

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

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

Solution (Python):

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

Solution (Python):
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]))

Solution (Python):
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()

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

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

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

Solution (Python):
def main():

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


main()

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

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

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

Solution (Python):
i = 1

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

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

Solution (Python):

"""
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:])

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

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

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

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

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

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


if __name__ == '__main__' :
    main()

Solution (Python):


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()

Solution (Python):
import sys
 
count = 1
 
for i in sys.stdin:
    i = i.rstrip()
    if i == "0":
        break
    print('Case {0}: {1}'.format(count, i))
    count += 1

Solution (Python):
w=114514
a=[]
i=0
while(w!=0):
    w=int(input())
    a.append(w)
a.remove(0)
for k in a:
    i+=1
    print("Case {0}: {1}".format(i,k))

Solution (Python):
i = 1
while 1:
    x = int(input())
    if i > 10000 or (x < 1 or 10000 < x):
        break
    print('Case ' + str(i) + ': ' + str(x))
    i += 1

Solution (Python):
def main():
    for i in range(1, 10000 + 1):
        x = input()
        if x == "0":
            break
        print("Case " + str(i) + ": " + x)

if __name__ == "__main__":
    main()

Solution (Python):
l = []
while True:
    n = int(input())
    if (n == 0):
        break;
    l.append(n)
for i,k in enumerate(l):
    print("Case {}: {}".format(i+1,k))

Solution (Python):
def main():
    data = []
    while 1:
        n = input().split()
        ans = int(n[0])

        if ans == 0:
            break

        data.append(ans)


    length = len(data)
    what_large = length > 10000

    if what_large:
        print("Too Large")
    else:
        for i in range(len(data)):
            d_val = data[i]

            if d_val != 0:
                print("Case {0}: {1}".format(i+1,d_val))
            else:
                break

if __name__ == '__main__':
    main()

Solution (Python):
a=[]
while True:
 n=input()
 if int(n)==0:
  break
 a.append(n)
for i in range(len(a)):
 print(f'Case {i+1}: {a[i]}')

Solution (Python):
a=[]
while True:
 n=input()
 if int(n)==0:break
 a.append(n)
for i in range(len(a)):print(f'Case {i+1}: {a[i]}')

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

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

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

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

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

Solution (Python):
a=[]
b=a.append
while True:
 n=input()
 if int(n)==0:break
 b(n)
for i in range(len(a)):print(f'Case {i+1}: {a[i]}')

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

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

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

Solution (Python):
import sys
i=1
for a in sys.stdin:
 if a=='0\n':break
 print(f'Case {i}: {a.strip()}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if a=='0':break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if a=='0':break
 print(f'Case {i}: {a}')
 i+=1

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

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

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

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

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

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

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

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if'0'==a:break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if'0'==a:break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if'0'==a:break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if'0'==a:break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if'0'==a:break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if a=='0':break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if a=='0':break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if'0'==a:break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if'0'==a:break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
line = 1
while True:
    data = input()
    if data == '0':
        break
    print('Case {}: {}'.format(line, data))
    line += 1

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

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

Solution (Python):
a = []
while True:
    n = int(input())
    if n == 0:
        break
    a.append(n)
for i in range(len(a)):
    print("Case " + str(i+1) + ":" + " " + str(a[i]))

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

Solution (Python):

array = []
while True:
    t = input()
    if t == 0:
        break
    array.append(t)
for i in range(len(array)):
    print "Case %d: %d" % (i + 1,array[i])

Solution (Python):
count = 0
while 1:
    count += 1
    n = int(input())
    if n == 0:
        break
    print('Case ' + str(count) + ': ' + str(n))

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

Solution (Python):
import sys
a=1
for b in sys.stdin:
    if b.strip()=="0":break
    print("Case %d: %s"%(a,b.strip()))
    a+=1

Solution (Python):
import sys
i=1
for a in sys.stdin:
 a=a.strip()
 if a=='0':break
 print(f'Case {i}: {a}')
 i+=1

Solution (Python):
import sys
a=1
for b in sys.stdin:
    if b.strip()=='0':break
    print(f'Case {a}: {b.strip()}')
    a+=1

Solution (Python):
import sys
a=1
for b in sys.stdin:
 b=b.strip()
 if b=='0':break
 print(f'Case {a}: {b}')
 a+=1

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

Solution (Python):
import sys
a=1
for b in sys.stdin:
 b=b.strip()
 if b=='0':break
 print(f'Case {a}: {b}')
 a+=1