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):
case_index = 0
while True:
	case_index += 1
	n = int(raw_input())
	if 0 == n:
		break
	print 'Case %d: %d'%(case_index, n)

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

Solution (Python):



data_set = []
while True:
	n = input()
	if n == 0:
		break
	data_set.append(n)

case = 1
for n in data_set:
	print "Case %d: %d" %(case, n)
	case +=	1

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

Solution (Python):
import sys

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

Solution (Python):
import sys

no = 1
while True:
    data = sys.stdin.readline().strip()
    if data == '0':
        break
    print('Case %d: %s' % (no, data))
    no += 1

Solution (Python):
i = 0

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

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

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

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


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

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

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

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

Solution (Python):


def PTC(a):
    for i in range(len(a)):
        if a[i] == "0":
            break
        print("Case "+ str(i+1) +": "+a[i])
        

if __name__=="__main__":
    a = []
    for i in range(10000):
        a.append(input())
        if a[i] == "0":
            break
    PTC(a)

Solution (Python):
i = 1
while True:
    n = input ()
    if n == 0 :
        break
    print "Case %d: %d" %(i, n)
    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):
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):
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):
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):
import sys

i = 1
for line in sys.stdin.readlines():
    x = int(line.strip())
    if x != 0:
        print("Case {}: {}".format(i, x))
    i += 1

Solution (Python):
import sys

i = 1
for line in sys.stdin.readlines():
    x = line.strip()
    if x != "0":
        print("Case {}: {}".format(i, x))
    i += 1

Solution (Python):
import sys

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

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

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

Solution (Python):
index=1

while True:
    case=input()
    if int(case)==0:
        break
    else:
        print("Case "+str(index)+": "+case)
        index+=1

Solution (Python):
import sys

i=1
for s in sys.stdin:
  n = int(s)
  if n == 0:
    break
  print("Case ",i,": ",n,sep="")
  i += 1

Solution (Python):
import sys

i=1
for s in sys.stdin:
  n = int(s)
  if n == 0:
    break
  print("Case ",i,": ",n,sep="")
  i += 1

Solution (Python):
L=[]
N= 0
while True:
	n= int(input())
	if(n==0):
		break
	L.append(n)
	N= N+1
	
for x in range(N):
	print("Case",str(x+1)+":",L[x])

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

Solution (Python):
a = []
num = 1

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

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

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

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

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

Solution (Python):
index = 0
inputs = []
while True:
  index += 1
  x = input()
  if x == '0':
    break
  else:
    inputs.append("Case {}: {}".format(index, x))
print("\n".join(inputs))

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

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

Solution (Python):


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

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

Solution (Python):
if __name__ == "__main__":
	num = []
	cou = 0
	while True:
		a = input()
		if a == '0':
			break
		num.append(a)
	for i in num:
		cou += 1
		print("Case %d: %s"%(cou,i))

Solution (Python):
num = []
count = 0
while True:
    x = int(input())
    if x ==0:
        break
    num.append(x)
    count +=1
for i,j in zip(range(1,count+1),num):
    print('Case '+str(i)+': '+str(j))

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

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

Solution (Python):
import sys

for index, line in enumerate(sys.stdin):
    value = int(line.strip())
    if value == 0:
        break
    print("Case {0}: {1}".format(index+1, value))

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

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

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

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

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

Solution (Python):
values = []
while True:
    v = int(input())
    if 0 == v:
        break
    values.append(v)

for i, v in enumerate(values):
    print('Case {0}: {1}'.format(i + 1, v))

Solution (Python):

import sys


i = 1


for s in sys.stdin:
    
    if int(s) == 0:
        break

    
    print("Case ",i,": ",int(s),sep="")
    
    i += 1

Solution (Python):
if __name__ == '__main__':
    current_no = 1
    while True:
        input_num = int(input())

        if input_num != 0:
            print('Case {0}: {1}'.format(current_no, input_num))
            current_no += 1
        else:
            break

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

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

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

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

Solution (Python):

x=[]
while True:
    i=int(raw_input())
    if i==0:
        break;
    x.append(i)
X=iter(x)
i=1
for a in X:
    print('Case %d: %d'%(i,a))
    i+=1

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

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

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

    print("Case {}: {}".format(i, n))

    i += 1

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

Solution (Python):


import sys

i = 1

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

Solution (Python):
data = []
n = input()
while n != '0':
    data.append(n)
    n = input()
[print("Case " + str(i + 1) + ": " + item) for i, item in enumerate(data)]

Solution (Python):
import sys

list_line = sys.stdin.readlines()

for index, element in enumerate(list_line):
    list_line[index] = element.rstrip('\n')

counter = 1
for i in list_line:
    if i != '0':
        print("Case %d: %s" % (counter, i))
        counter += 1
    else:
        counter = 1

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

Solution (Python):
dataset = []
while True:
    x = int(input())
    if not(x >= 1 and x <= 10000):
        break
    elif len(dataset) >= 10000:
        break
    elif x is not 0:
        dataset.append(x)
    else:
        break

for index, number in enumerate(dataset):
    print("Case {0}: {1}".format(index+1, str(number)))

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

Solution (Python):
import sys
c = 1
for i in sys.stdin.readlines() :
    if i.strip() == "0" :
        break
    else :
        print("Case " + str(c) + ":" + " " + str(i.strip()))
        c = c + 1

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

Solution (Python):
dataset = []
while True:
    x = int(input())
    if not(x >= 1 and x <= 10000):
        break
    elif len(dataset) >= 10000:
        break
    elif x is not 0:
        dataset.append(x)
    else:
        break

for index, number in enumerate(dataset):
    print("Case {0}: {1}".format(index+1, str(number)))

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

Solution (Python):


import sys

array = []
for i in sys.stdin:
    if int(i) == 0:
        break
    array.append(int(i))

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

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

Solution (Python):
i = 0
x = []
while True:
    x.append(int(raw_input()))
    if x[len(x) - 1] == 0:
        break
for i in range(len(x) - 1):
    i += 1
    print 'Case %d: %d' % (i, x[i - 1])

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

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

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

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

Solution (Python):
import sys
i=1
for l in sys.stdin:
    x=l.rstrip('\r\n')
    if x=="0":break
    print("Case %d: %s"%(i,x))
    i+=1

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

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

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

for j in range(i - 1):
    fmt = "Case {a}: {b}"
    s = fmt.format(a = j + 1,b = lis[j])
    print(s)

Solution (Python):
lis=[]
while True:
  d=input()
  if d=="0":
    break
  else:
    lis.append(int(d))

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

Solution (Python):
import sys

a = []
for line in sys.stdin:
    line = int(line)
    if line == 0:
      break
    a.append(int(line))

for i,x in enumerate(a):
  print "Case %s: %s" %(i+1 ,x)

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

Solution (Python):
import fileinput

cnt = 0

for line in fileinput.input():
    tokens = list(map(int, line.strip().split()))
    a = tokens[0]
    if a == 0:
        break
    else:
        cnt = cnt + 1
        print("Case "+str(cnt)+": "+str(a))

Solution (Python):

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

Solution (Python):
counter = 1

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

Solution (Python):
for i in range(1, 10001):
    try:
        num = input()
    except EOFError:
        break

    print('Case {0}: {1}'.format(i, num))

Solution (Python):


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


if __name__ == '__main__':
    main()

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



i = 0

while i < 10000:
    num = input().rstrip()
    if int(num) > 0:
        i += 1
        print("Case " + str(i) + ": " + str(num))
    else:
        break

Solution (Python):


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


if __name__ == '__main__':
    main()

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

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

Solution (Python):

i = 0 

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

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

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

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

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

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

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

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

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

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

Solution (Python):
if __name__ == "__main__":
    i = 1
    while True:
        x = str(input())
        if x is not "0":
            print("Case %d: %s"%(i,x))
        else:
            break
        i += 1

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

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

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

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

Solution (Python):
x = int(input())
cnt = 1
a = []
while x != 0:
    print('Case %s: %d' % (cnt, x))
    x = int(input())
    cnt += 1

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):
x    = input()
case = 1

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

Solution (Python):
x = []

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

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

Solution (Python):
c=0
n=1
while n!=0 :
    n=input()
    if n!=0:
        print "Case", str(c+1) + ":", n
    c=c+1

Solution (Python):
c=0
n=input()
while n!=0:
    print "Case", str(c+1) + ":", n
    c=c+1
    n=input()

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

Solution (Python):
idx = 1
while True:
    num = int(input())
    if num == 0:
        break
    else:
        print("Case {}: {}".format(idx, num))
        idx += 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):
import sys
i = 0
for x in sys.stdin.readlines():
    x = x.rstrip()
    if x == "0":
        break
    i += 1
    print("Case "+ str(i)+": "+ x)

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

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

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

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

for test_case in range(10**4 + 2):
    x = int(stdin.readline())

    if not x:
        break

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

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

Solution (Python):
i = 0

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

Solution (Python):
i = 0

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

Solution (Python):


import sys
import os

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

Solution (Python):


list = []

while True:
    num = int(input())
    if num == 0:
        break
    list.append(num)

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

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

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

Solution (Python):
l = []
i = 1

while 1:
    x = int(input())
    if x == 0:
        break
    l.append(x)
    print("Case {0}: {1}".format(i,l[i-1]))
    i += 1

Solution (Python):
list = []
while True:
    n = int(input())
    if n == 0:
        break
    list.append(n)
for i,n in enumerate(list):
    print('Case %i: %i' %(i+1, n))

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

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

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

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

Solution (Python):
i = 1

while 1:
    n = int(input())

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

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

Solution (Python):
i = 1
while True:
    x = int(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 "+str(i)+": "+ str(x))
    i += 1

Solution (Python):

inputs = []

for i in range(10000) :
	inputraw = input()
	if inputraw == '0' :
		break
	inputs.append(inputraw)

for i, input in enumerate(inputs) :
	print("Case "+str(i+1)+": "+ str(input))

Solution (Python):
for i in range(1, 10001):
    a = input().strip()
    if a == "0": break
    print("Case %d: %s" % (i, a))

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

Solution (Python):



def func():
    result = ""
    try:
        index = 0
        while (True):
            line = input().rstrip()
            num = int(line)
            if (num == 0):
                break

            index += 1
            result += "Case "+str(index)+": "+str(num)+"\n"
            
    except:
        print("input error")
        return -1
        
    print(result.rstrip())

func()

Solution (Python):



def func():
    result = ""
    
    index = 0
    while (True):
        try:
            line = input().rstrip()
            num = int(line)
        except:
            print("input error")
            return -1
        
        if (num == 0):
            break

        index += 1
        result += "Case "+str(index)+": "+str(num)+"\n"
    
    print(result.rstrip())

func()

Solution (Python):

count=1
while True:
    data = int(input())
    if(data != 0):
        text ="Case %d: %d"%(count,data)
        print (text)
    else:
        exit()
    count+=1

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

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

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
while(True):
  num=int(input())
  if num == 0:
    break
  print('Case %d: %d' % (count,num))
  count += 1

Solution (Python):
i = 1
while True:
    x = int(input())
    if x == 0:
        break
    print("Case {}: {}".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):
array = []
while True:
    x= input()
    if x == 0:
    	break
    array.append(x)

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

Solution (Python):
def main():
    numbers = []
    bl = True
    while bl:
        inp = input()
        if inp == "0":
            bl = False
        numbers.append(inp)
    for i in range(1,len(numbers)):
        print("Case {}: {}".format(i,numbers[i-1]))
    return None

if __name__ == '__main__':
    main()

Solution (Python):

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

Solution (Python):
from sys import stdin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


import sys

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

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

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

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

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

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

Solution (Python):
import sys
cnt = 1

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

Solution (Python):
import sys
cnt = 1

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