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


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


if __name__ == '__main__':
    main()

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

Solution (Python):
i = 0

while(True):
    i += 1
    num = int(input())
    if num == 0:
        break
    print("Case ",end = "")
    print(i,end = ": ")
    print(num)

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

Solution (Python):
a = []
count = 0
while True:
    a.append(int(input()))
    if a[count] == 0:
        break
    count += 1
for i in range(count):
    print('Case %d'%(i+1)+': %d'%a[i])

Solution (Python):
v = 0
i = 0
a = []
while v == 0:
    x = input()
    if 0 == int(x):
        v = 1
    else:
        a.append(int(x))
        i = int(i) + 1

for j in range(int(i)):
    print('Case %d: %d' % (int(j)+1,a[int(j)] ))

Solution (Python):
a5=[]
while True:
    x=int(input())
    if x==0:
        break
    a5.append(x)
j = 0
for i in a5:
    print("Case " + str(j+1)+": "+ str(i))
    j=j+1

Solution (Python):
s = []
while True:
    x = int(input())
    if x == 0:
        break
    s.append(x)
for (i,num) in enumerate(s):
    print('Case {0}: {1}'.format(i+1,num))

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

Solution (Python):
counter=0

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

Solution (Python):






N=-1



for i in range(1,10001):
    N=int(input())
    if N == 0:
        break
    print('Case {0}: {1}'.format(i,N))

Solution (Python):
x = int(input())
i=1

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

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

Solution (Python):
cnt = 1
while 1:
    tmp = int(raw_input())
    if tmp == 0:
        break
    else:
        print "Case " + str(cnt) + ": " + str(tmp)
        cnt+=1

Solution (Python):
i = 0

while True:
    i += 1
    x = int(input())
    if x == 0: break

    print("Case ", i, ": ", x, sep = "")

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

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

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

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

Solution (Python):
import sys
for i, x in enumerate(iter(sys.stdin.readline, '0\n'), 1):
    print(f'Case {i}: {x[:-1]}')

Solution (Python):
import sys
for i, x in enumerate(iter(sys.stdin.readline, '0\n'), 1):
    print(f'Case {i}: {x[:-1]}')

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
i = 0

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
i = 1

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

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

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

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

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

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

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

Solution (Python):
i = 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
datalist = {}
Flag = True
for i in range(10000):
    if Flag:
        n = int(input())
        if n == 0:
            Flag = False
        else:
            datalist[i+1] = n

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

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

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

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

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

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

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

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

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

Solution (Python):
i = 1

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

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

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

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

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

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

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

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

Solution (Python):
from sys import stdin

cnt = 0

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

    if x == 0:
        break

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

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

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

Solution (Python):
i = 1
while True:
    x = int(input())
    if x == 0:
        break

    print("Case {}: {}".format(i, x))
    i += 1

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

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

    if a == 0:
        break

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

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

Solution (Python):
c = 0

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
count = 1
while True:
    x = input()
    if x == 0:
        break
    print ("Case %d: %d" % (count, x))
    count += 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):
c=1
while 1:
    n=input()
    if n:print'Case %d: %d'%(c,n)
    else:break
    c+=1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys

i = 1

while(1):
    a = raw_input()
    if('0'==a):
        break
    else:
        print "Case %d: %s" % (i, a)
        i += 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):
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='')

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

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

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

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

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

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

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

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

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

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

Solution (Python):
c = 1

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

Solution (Python):
c = 1

while True:
    x = int(input())
    if x == 0:
        break

    print('Case {0}: {1}'.format(c, x))
    c += 1

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

Solution (Python):

"""
Created on Fri Jan 30 17:18:51 2015

@author: hirose
"""


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

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

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

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

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
c = 0
while True:
	x = int(sys.stdin.readline())
	if x == 0:
		break
	c+=1
	print ('Case ' + str(c)+':', x)

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

Solution (Python):
import itertools as itr

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

Solution (Python):



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

Solution (Python):


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

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

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

Solution (Python):
import sys

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

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

Solution (Python):
import sys

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

Solution (Python):
import sys

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

Solution (Python):

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

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

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

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

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

Solution (Python):
import itertools

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

Solution (Python):


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

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

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

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

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

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

Solution (Python):


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

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

Solution (Python):
i = 0

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

Solution (Python):
i = 0

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

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

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

Solution (Python):
count = 1

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

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

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

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

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

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

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