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
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:
 b=b.strip()
 if b=='0':break
 print('Case {0}: {1}'.format(a,b))
 a+=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):
x = input()
i = 1
while x != "0":
    print("Case %d: %s" % (i, x))
    x = input()
    i += 1

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

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

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

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

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

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

Solution (Python):
import sys

l = []
for input in sys.stdin:
    l.append(int(input))
for i in range(0,len(l)):
    if(l[i] != 0):
        print 'Case %d:'%(i+1),l[i]

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

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(1, 10001):
    x = input()
    if x == "0":
        break
    print(f"Case {i}: {x}")

Solution (Python):
cn = 1
while True:
	try:
		
		line = input()
		if line == '0':
			break	
		else:
			print('Case {}: {}'.format(cn,line))
			cn = cn + 1
	except EOFError:
		break

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

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

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

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

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

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

Solution (Python):


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

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

if __name__ == "__main__":
    ret = printcase()

Solution (Python):


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

Solution (Python):
def execute(i, x):
    return 'Case {}: {}'.format(i, x)

if __name__ == '__main__':
    i = 0
    while True:
        x = int(input())
        i += 1
        if not x: break
        print(execute(i, x))

Solution (Python):
i=1
for a in iter(input,'0'):
 print(f'Case {i}: {a}');i+=1

Solution (Python):
i=1
for a in iter(input,'0'):
 print(f'Case {i}: {a}');i+=1

Solution (Python):
i=1
for a in iter(input,'0'):
 print(f'Case {i}: {a}');i+=1

Solution (Python):
for i,a in enumerate(iter(input,'0')):print(f'Case {i+1}: {a}')

Solution (Python):
for i,a in enumerate(iter(input,'0')):print(f'Case {i+1}: {a}')

Solution (Python):
for i,a in enumerate(iter(input,'0')):print(f'Case {i+1}: {a}')

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

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

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

Solution (Python):
for i,a in enumerate(iter(input,'0'),1):print(f'Case {i}: {a}')

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

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

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

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

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

Solution (Python):
import sys
i=1
for a in sys.stdin:
 if a=='0\n':break
 print(f'Case {i}: {a}',end='');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'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'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'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'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):
c = 1
while True:
    n = int(input())
    if n == 0:
        break
    print ('Case {}: {}'.format(c, n))
    c += 1

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

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

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

Solution (Python):
from sys import stdin
nums = list(stdin)[:-1]
for index, num in enumerate(nums, 1):
	print('Case %d: %s' % (index, num), end='')

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

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

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

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

Solution (Python):


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

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

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

Solution (Python):



import sys

num = 0
while True:
    s = sys.stdin.readline().strip()
    if s == '0':
        break
    num += 1
    print('Case ', num, ': ', s, sep='')

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

Solution (Python):
a = input()
i = 1

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

Solution (Python):
x = []
a = 0
while True:
    x.append(int(input()))
    if x[a] == 0 or a == 9999:
        break
    a += 1
i = 0
for b in x:
    if b == 0 or i == 10000:
        break
    print('Case ' + str(i + 1) + ': ' + str(b))
    i += 1

Solution (Python):
i = 1
while True:
    x = input()
    x = int(x)
    if x < 0 or x > 10000:
        continue
    if x == 0 or i > 10000:
        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):
a = input()
c = 1
while a:
    if int(a) == 0:
        break
    print('Case {}: {}'.format(c, a))
    c += 1
    a = input()

Solution (Python):

array = []
while True:
  z = input()
  if(int(z)== 0):
    break
  else:
    array.append(z)

a = 1
for i in array:
  print('Case ' + str(a) + ': ' + str(i))
  a += 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):
i = 1
num = input()
while num != '0':
    print('Case {0}: {1}'.format(i, num))
    i += 1
    num = input()

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

Solution (Python):
import sys
lines = sys.stdin.readlines()
for i in range(len(lines)):
    a = int(lines[i])
    if(a == 0):
        break
    else:
        print("Case {0}: {1}".format(i+1, a))

Solution (Python):


if __name__ == '__main__':
    for i in range(0, 10000):
        x = int(raw_input())
        if x==0:
            break

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

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

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

Solution (Python):
a=[]
i=0
while 1:
    n=int(input())
    if n==0:
        break
    else:
        a.append(n)
        i=i+1
l=0
while l<i:
    print("Case "+str(l+1)+": "+str(a[l]))
    l=l+1

Solution (Python):
i = 1
s = ''
while True:
    p = int(input())
    if p == 0:
        break
    else:
        s += 'Case ' + str(i) + ': ' + str(p) + '\n'
        i += 1
if s != '':
    s = s[:-1]
    print(s)

Solution (Python):
import sys
line = sys.stdin.readlines()
for i in range(len(line)-1):
    sys.stdout.write("Case " + str(i+1) + ": " + str(line[i]))

Solution (Python):

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

Solution (Python):

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

Solution (Python):

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

Solution (Python):

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

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

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

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

Solution (Python):
i = 1

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

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

Solution (Python):
a = []
while True:
  n = int(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=1

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

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

Solution (Python):
num = 0
last = 1
while last != 0:
	t = input()
	if t == "0":
		last = 0
	else:
		num += 1
		print("Case " + str(num) + ": " + str(t) )

Solution (Python):
def testcase(num, x):
    print("Case {}: {}".format(str(num),str(x)))

cnt=0
while True:
    num = int(input())
    cnt+=1
    if num !=0:
        testcase(cnt,num)
    elif num == 0:
        break

Solution (Python):
i = 1

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

Solution (Python):





int_in =1
int_list = []
while int_in != 0:
	int_in = input()
	int_list = int_list + [int_in]

i = 1
for value in int_list:
	if value ==0:
		break
	print('Case ' + repr(i) +': '+ repr(value))
	i=i+1

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

Solution (Python):


for i in range(10000):
    n = input()
    if n != "0":
        i += 1
        print("Case " + str(i) + ": " + str(n))
    else:
        break

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):
a = []
while True:
    n = input()
    if n == 0:
        break
    a.append(n)
i = 0
for case in a:
    i+=1
    print "Case "+str(i)+": "+str(case)

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

Solution (Python):
x = []
while(1):
    inp = int(input())
    if inp !=0:
        x.append(inp)
    else:
        x.append(inp)
        break

j=0
while(1):
    if(x[j]!=0):
        print("Case {}: {}".format(j+1,x[j]))
        j+=1
    else:
        break

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

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

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

Solution (Python):
inputNumberList = []
while True:
    inputNum = int(input())
    if inputNum != 0:
        inputNumberList.append(inputNum)
    else:
        break

counter = 1
for number in inputNumberList:
    print("Case " + str(counter) + ": " + str(number))
    counter += 1

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

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

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 not x: break
  print("Case {}: {}".format(i, x))
  i+=1

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

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

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

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

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

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

Solution (Python):
import sys

a = []

for line in sys.stdin:
    a.append(int(line))

cnt = 0
for i in a:
    cnt += 1
    if i == 0:
        break
    print("Case " + str(cnt) + ": " + str(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 = 0
x = [0]
while(1):
    i += 1
    x.append(int(input()))
    if x[i] == 0:
        break

for j in range(1,i):
    print("Case ",j,": ",x[j],sep="")

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

Solution (Python):

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

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

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

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

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

Solution (Python):
c = 0

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

Solution (Python):
c = 0

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

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

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

Solution (Python):



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

Solution (Python):
a=[]
i=0
while 1 :
	a.append(int(input()))
	i+=1
	if a[i-1] == 0:
		break
for j in range(i-1):
	print("Case %d: %d" % (j+1 ,a[j]))

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 e in sys.stdin:
 if'0\n'==e:break
 print(f'Case {i}: {e[:-1]}');i+=1

Solution (Python):
import sys
i=1
for e in sys.stdin:
 if'0\n'==e:break
 print(f'Case {i}: {e[:-1]}');i+=1

Solution (Python):
import sys
i=1
for e in sys.stdin:
 if'0\n'==e:break
 print(f'Case {i}: {e[:-1]}');i+=1

Solution (Python):
import sys
i=1
for e in sys.stdin:
 if'0\n'==e:break
 print(f'Case {i}: {e[:-1]}');i+=1

Solution (Python):
import sys
i=1
for e in sys.stdin:
 if'0\n'==e:break
 print(f'Case {i}: {e[:-1]}');i+=1

Solution (Python):
import sys
i=1
for e in sys.stdin:
 if'0\n'==e:break
 print(f'Case {i}: {e[:-1]}');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):
x = int(input())
i = 1
while x != 0:
    print("Case {}: {}".format(i, x))
    i += 1
    x = int(input())

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

Solution (Python):




import sys

def main(c, x):
    if '0' == x: return True
    msg = 'Case %d: %s' % (c, x)
    print(msg)
    return False
    
if '__main__' == __name__:
    counter = 1
    try:
        while True:
            if main(counter, input().strip()): break
            counter += 1
    except EOFError:
        pass

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

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

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

Solution (Python):
input_value = None
i = 0

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

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

Solution (Python):
def input_until_zero():
    rtn_list = []
    while True:
        in_value = int(input())
        if in_value == 0:
            break
        rtn_list.append(in_value)

    return rtn_list

rtn = input_until_zero()

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

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

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

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

for i, n in enumerate(x):
    print('Case {}: {}'.format(i+1,n))

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

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):
r=[]
while 1:
    a=int(input())
    if not a:break
    r.extend([a])
[print("Case {}: {}".format(i+1,j)) for (i,j) in enumerate(r)]

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

Solution (Python):


a = []

while True:
   n = input()
   if n == 0:
      break
   a.append(n)

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

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

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

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

Solution (Python):
import sys

if __name__ == '__main__':
    i = 1
    for line in sys.stdin.read().splitlines():
        if line == '0':
            break
        print "Case %d: %s" % (i, line)
        i += 1

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

Solution (Python):
lis = []
while True:
    x = int(input())
    lis.append(x)
    if x == 0:
        break
lis.pop()
for z,y in enumerate(lis):
    print("Case "+str(z+1)+": "+str(lis[z]))

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

Solution (Python):
cnt = 1
c = int(input())
while c != 0:
    print('Case ' + str(cnt) + ': ' + str(c))
    c = int(input())
    cnt += 1

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

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

Solution (Python):


testCount = 0
zeroCount = 0
while zeroCount == 0:
    number = int(input())
    if number == 0:
        zeroCount += 1
    else:
        testCount += 1
        print('Case ' + str(testCount) + ': ' + str(number))

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

i = 1
for val in a:
    if val != 0:
        print("Case {0}: {1}".format(i, val))
        i += 1

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

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 {}: {}".format(i, x))
    i += 1

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

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

Solution (Python):
def solve(test):

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

    
 

def answer():
    
    test =[]
    while True :
        n = input()
        if n=='0':
            break
        else:

            test.append(n)
    solve(test)


   

if __name__ =='__main__':
    answer()

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

Solution (Python):


i = 1

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

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

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

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

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

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

Solution (Python):



def main():
	i = 1
	values = []
	while True:
		x = int(raw_input())
		if x == 0:
			break
		values.append(x)

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

if __name__ == '__main__':
	main()

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

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

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

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

Solution (Python):
from __future__ import division, print_function
from sys import stdin
case = 1
for line in stdin:
    x = int(line)
    if not x:
        break
    print('Case {}: {}'.format(case, x))
    case += 1

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

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

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

Solution (Python):
a = True
b = []
while a:
    tmp = int(input())
    if tmp == 0:
        a = False
    else:
        b.append(tmp)

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

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

Solution (Python):
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if not x:
       break
    print ('Case {}: {}'.format(i, x))
    i += 1