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):
x = []
for i in iter(input, '0'):
    x.append(i)
for i in range(len(x)):
    print(f'Case {i+1}: {x[i]}')

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

Solution (Python):
i = 1
list = []
while(True):
    x = int(input())
    if x != 0:
        list.append(x)
        i += 1
    else:
        i -= 1
        break

for num in range(i):
    print(f'Case {num+1}: {list[num]}')

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

Solution (Python):
number = 1
 

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

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

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

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

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

Solution (Python):
count = 1

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

Solution (Python):
import itertools
a = itertools.count(1)


while True:
    n = int(input())
    if  n == 0:
        break
    else:
        print("Case {}: {}".format(next(a),n))

Solution (Python):
import math
import copy
from copy import deepcopy
import sys
import fractions

from functools import reduce

import heapq
import collections
import itertools
sys.setrecursionlimit(100001)






def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList



cnt = 0
while True:
    cnt += 1
    x = int(input())
    if x != 0:
        print("Case ", cnt, ": ", x, sep="")
    else:
        exit(0)

Solution (Python):

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

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

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

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

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

Solution (Python):
import itertools
a = itertools.count(1)


while True:
    n = int(input())
    if  n == 0:
        break
    else:
        print("Case {}: {}".format(next(a),n))

Solution (Python):

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

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

Solution (Python):
count = 0

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

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

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

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

Solution (Python):
a = 0

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

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

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

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

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

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

Solution (Python):
i = 1
while 1:
    x = int(input())
    if x == 0:
        break
    else:
        print("Case %d: %d" % (i,x))
        i += 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):
num = 1
while True:
 test = int(input())
 if test == 0:
  break;
 else:
  print("Case " + str(num) + ": " + str(test))
  num += 1

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

Solution (Python):
for i in range(10000):
    n = int(input())
    if n==0:
        break
    print(f"Case {i+1}: {n}")

Solution (Python):
x = int(input())
i = 1
while x:
    print(f'Case {i}: {x}')
    x = int(input())
    i += 1

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

Solution (Python):
a=[1]
c=1
while a[-1]!=0:
    b=int(input())
    a.append(b)
b=len(a)-2
for i in range(b):
    print("Case %d: %d"%(c,a[c]))
    c+=1

Solution (Python):
output=[]
i=1
while True:
	x=int(input())
	if x!=0:
		output.append('Case ' + str(i) + ': ' + str(x))
		i+=1
	else:
		break
print('\n'.join(output))

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

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

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

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

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

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

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

Solution (Python):



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

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

Solution (Python):
import sys
c = 1
l = []
for i in sys.stdin:
    l.append(int(i))
for i in l:
    if i == 0:
        exit()
    else:
        print("Case " + str(c) + ": " + str(i))
    c += 1

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

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

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

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

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

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

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

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

Solution (Python):
index = 1

while True:
    num = int(input())

    if num == 0:
        break

    print('Case {index}: {num}'.format(index=index, num=num))

    index += 1

Solution (Python):
idx = 1

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

  result = 'Case {}: {}'.format(idx, n)
  print(result)
  idx += 1

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

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

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

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

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

Solution (Python):
i=1
while True:
    num = int(input())
    if num==0:
        break
    print("Case %d:" %(i), num)
    i+=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:
    x = int(input())
    if x == 0: break
    print(f"Case {i}: {x}")
    i += 1

Solution (Python):
counter = 1

while True:
    a = int(input())

    if a==0:
        break
    print("Case %d: %d" %(counter, a))
    counter = counter + 1

Solution (Python):
counter = 1

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

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

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

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

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):
c = 1
while True:
    x = int(input())
    if x == 0:
        break
    print("Case "+str(c)+":",x)
    c += 1

Solution (Python):
num=1


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

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

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

Solution (Python):
i = 1
while True:
    num = int(input())
    if num == 0:
        break
    else:
        print("Case %d: %d" % (i,num))
        i += 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
while True :
    x = int(input())
    if x == 0 : break
    print(f'Case {i}: {x}')
    i += 1

Solution (Python):


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

Solution (Python):
num = 1
while num < 10001:
    s = input()
    if s == "0" :
        break
    print("Case ", str(num), ": ", s, sep="")
    num += 1

Solution (Python):
count = 1

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

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

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

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

Solution (Python):

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

Solution (Python):

import sys






for i in range(0,10000):
    tmp= int(input())
    if(tmp==0):
        sys.exit()

    strout="Case "+str(i+1)+": "+str(tmp)
    print(strout)

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

Solution (Python):
c = 1

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

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

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

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):
def printTestCase():
    i = 1
    while 1:
        val = int(input())
        if val == 0:
            break
        print('Case %d: %d' % (i, val))
        i += 1

if __name__ == '__main__':
    printTestCase()

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

Solution (Python):
for i in range(1, 10000 + 1):
    x = input().split()
    ans = "Case " + str(i) + ": " + str(x[0])
    print(ans)

Solution (Python):
x = []
for _ in range(1,10001):
    tmp = int(input())
    if tmp == 0:
        break
    x.append(tmp)


for i, x_num in enumerate(x):
    print(f'Case {i+1}: {x_num}')

Solution (Python):
case_number = 1

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

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

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

Solution (Python):
count = 0
x = []
x.append(int(input()))
while x[count] != 0:
    count += 1
    x.append(int(input()))
    
for i in range(count):
    print("Case", str(i+1) + ":", str(x[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):
for i in range(1,10001):
    s = input()
    t = int(s)
    if t == 0:
        break
    else:
        print('Case {}: {}'.format(i,t))

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

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

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

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

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

Solution (Python):
i = 1

while i <= 10000:
    a = input()
    if a != "0":
        print("Case", i, end="")
        print(":", a)
        i += 1
    else:
        i = 10001

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

Solution (Python):
i = 1
ans_list = list()

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

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

Solution (Python):
count = 1
for i in iter(input,'0'):
    print("Case {}: {}".format(count, i))
    count += 1

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

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

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

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

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

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

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

Solution (Python):
def testcase_ends(case_id):
    n = int(input())
    if n == 0: return True

    print('Case {}: {}'.format(case_id, n))
    return False

def main():
    i = 1
    while not testcase_ends(i):
        i += 1

main()

Solution (Python):

x = []
while True:
    tmp = int(input())
    if tmp != 0:
        x.append(tmp)
    elif tmp == 0:
        break

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

Solution (Python):
import sys
input = sys.stdin.readline

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

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

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

Solution (Python):
case_num = 1

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

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

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

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

Solution (Python):
i = 1

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

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

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

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

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

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

Solution (Python):
index = 1
answer = []
while True:
    num = int(input())
    if num == 0:
        break
    else:
        answer.append("Case {}: {}".format(index, num))
        index += 1

print(*answer, sep = "\n")

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):
i = 0
while 1:
    i = i + 1
    x = int(input())
    if x == 0:
        break
    print("Case " + str(i) + ": " + str(x))

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

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

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

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

Solution (Python):
count = 0
list = list()

while count >= 0:
    list.append(int(input()))
    if list[count] == 0:
        break
    count += 1

for i in range(0, count):
    print(f"Case {i+1}: {list[i]}")

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

Solution (Python):
i = 1

while True:
	num = int(input())
	if num == 0:
		break
	else:
		print("Case %d: %d" % (i, num))
	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):
for i in range(1,10005):
    x = int(input())
    if x == 0:
        break
    print("Case "+str(i)+": "+str(x))

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

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

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

Solution (Python):
c=1
while(1):
    n=int(input())
    if(n>0):
        print("Case %d:% d"%(c,n))
        c+=1
    else:
        break;

Solution (Python):
import sys
import itertools



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A = [int(i) for i in read().split()]
for i in range(1, len(A) + 1):
    if A[i - 1] != 0:
        print(f'Case {i}: {A[i - 1]}')

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

Solution (Python):
case_number = 1

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

Solution (Python):
i=0
x = []
while True:
    x.append(input())
    if x[i]=='0':
        break
    i += 1

i = 0
while True:

    print("Case " + str(i+1) + ": " + x[i])
    i += 1
    if x[i] == '0':
        break

Solution (Python):
i=1

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

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

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

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

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

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

Solution (Python):


def resolve():
    a = []
    while True:
        x = int(input())
        if x == 0: break
        a.append(x)

    for i, x in enumerate(a):
        print(f"Case {i+1}: {x}")

if __name__ == "__main__":
    resolve()

Solution (Python):
import sys

i = 1
for line in sys.stdin.readlines():
    line = line.replace("\n", "")
    if line == "0":
      break
    print(f"Case {i}: {line}")
    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):

import sys

str_lines = [x.strip("\n") for x in sys.stdin.readlines()]
int_lines = list( map( int, str_lines ) )


i=1
for x in int_lines:
  if x != 0:
    print( "Case " + str(i) + ": " + str(x) )
    i += 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):
num=1
for i in range(1,10001):
    a=int(input())
    if a==0:
        break
    else:
        print("Case ",num,": ",a,sep="")
        num=num+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):
for i in range(1, 100000000):
    a = int(input())
    if a == 0:
        break
    print("Case", end = " ")
    print(i, end = ": ")
    print(a)

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

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

Solution (Python):
for i in range(1,10000+1):
    v = input()
    print(f'Case {i}: {v}')

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):
i = 0

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

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

Solution (Python):

a=0
while True:
    b=int(input())
    a+=1
    if b==0:
        break
    c=str(a)+":"
    print("Case",c,b)

Solution (Python):
no = 1

while True:
    x = int(input())

    if x == 0:
        break
    print(f"Case {no}: {x}")

    x+=1
    no+=1

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

Solution (Python):
i = 0
while True:
    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(f'Case {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):
i = 0
while True:
	x = int(input())
	i += 1
	if x == 0: break
	print("Case %d: %d" %(i, x))

Solution (Python):
i = 0
for val in iter(input, '0'):
    i += 1
    print('Case %d: %s' % (i, val))

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

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

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

Solution (Python):

k = 1
while k > 0:
    a = int(input())
    if a != 0:
        print('Case ',k,': ',a, sep='')
        k = k + 1
    else:
        k=0

Solution (Python):
i=1

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

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

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