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

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

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

Solution (Python):
a = []
case = 1
while True:
    x = (input())
    if x == '0':
        break
    a.append(x)
    case+=1
for sdgsjhf in range(len(a)):
    print('Case ',(sdgsjhf+1),": "+a[sdgsjhf],sep='')

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

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

Solution (Python):
count = 1

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

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

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

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

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

Solution (Python):
li = []
inp = int(input())

while inp != 0:
	li.append(inp)
	inp = int(input())

for index,num in enumerate(li):
	print("Case %d: %d"%(index+1,num))

Solution (Python):
import sys

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

Solution (Python):




numlist = []
while (1) :
    x = int(input())
    if x == 0 :
        break
    numlist.append(x)
case = 1
for x in numlist :
    print('Case {0}: {1}'.format(case, x))
    case += 1

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

Solution (Python):
case_num = 1

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

Solution (Python):
def print_num(index, a):
    print("Case " + str(index) + ": " + str(a))

if __name__ == "__main__":

    index = 1

    while(1):
        a = input()
        a = int(a)

        if a != 0:
            print_num(index, a)
            index += 1
        else:
            break

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

Solution (Python):
for xi in range(1, 1000000):
    inx = input()
    if inx =="0":
        break
    tex = "Case "+str(xi)+": "+inx
    print(tex)

Solution (Python):
X = list(map(int, open(0).read().split()))
for id, x in enumerate(X[:-1], start=1):
    print(f'Case {id}: {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 = input()
    if(int(x) == 0):
        break
    print("Case "+str(i)+": "+str(x))
    i += 1

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

def main():
    x=input()
    case=1
    while x!=0:
        print("Case {}: {}".format(case,x))
        case+=1
        x=int(input())

main()

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

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

Solution (Python):
array = []
while True:
    x = int(input())
    if 1 <= x and 10000:
      array.append(x)
    elif x == 0:
      break

for index, item in enumerate(array):
    print("Case " + str(index + 1) + ": " + str(array[index]))

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

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

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

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

Solution (Python):
t = 1

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

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 = input()
    if x != str(0):
        print('Case '+ str(i) + ': ' + x)
        i += 1
    else:break

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

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

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

Solution (Python):
import sys
for i,line in enumerate(sys.stdin):
  l = int(line.strip())
  if l == 0: exit()
  print('Case {}: {}'.format(i+1, l))

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
i=0
x = []

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

for j in range(i):
    print(f"Case {j+1}: {x[j]}")

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

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

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

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

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

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

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

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

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

Solution (Python):

for i in range(1,10001):
    num=input()
    if num=="0":
        break
    else:
        print("Case ",i,": ",num,sep="")

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

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

if __name__ == "__main__":
    main()

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

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

Solution (Python):
i=1

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

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

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

Solution (Python):
inputs = []

while True:
    val = input()
    if val == str(0):
        break
    else:
        inputs.append(val)

for num, i in enumerate(inputs, 1):
    print("Case {}: {}".format(num, i))

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

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

Solution (Python):
count = 1

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

Solution (Python):

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

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

if __name__ == '__main__':
    main()

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

Solution (Python):

l=1

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

Solution (Python):
import sys

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

Solution (Python):
x=i=1
while(True):
  x=int(input())
  if x == 0 :
    exit()
  print("Case",end=" ")
  print(i,end="")
  print(":",end=" ")
  print(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):
for i in range(10000):
    a = int(input())
    if a != 0:
        print("Case {}: {}".format(i+1, a))
    else:
        break

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

Solution (Python):
case_num = 1

while True:
    tmp_num = int(input())
    if tmp_num == 0:
        break
    else:
        answer = "Case "+str(case_num)+": "+str(tmp_num)
        print(answer)
        case_num += 1

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

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

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

Solution (Python):
i = 1

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

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

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

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

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

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

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

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

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

Solution (Python):

count = 0
while(1):
    count = count + 1
    a = input()
    if a == '0':
        break
    print('Case ' + str(count) + ':' + ' ' + a)

Solution (Python):
i=1

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

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

Solution (Python):
i = 1

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

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

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

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

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

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

Solution (Python):
i = 0;

while True:
    i += 1

    x = int(input())
    if x == 0:
        break
    print("Case %d: %d" %(i, x))

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

Solution (Python):
case_number = 1

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

Solution (Python):
i = 1

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

Solution (Python):
x = 0
a = 1

while x == 0:
    y = int(input())
    if y != 0:
        print('Case ', a, ': ', y, sep="")
        a += 1
    else:
        break

Solution (Python):
def main(n, i):
    if n == 0:
        return False
    print(f"Case {i}: {n}")
    return True

i = 1
while main(int(input()), i):
    i += 1

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

Solution (Python):
import sys
a = []
for i in sys.stdin:
    if i == "\n":
        break
    else:
        a.append(i.strip())
for x in range(len(a)-1):
    print("Case " + str(x+1) + ": " + a[x])

Solution (Python):
case_num = 1

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

Solution (Python):
li = []
for i in range(0, 10000):
    a = int(input())
    if a == 0:
        break

    li.append(a)

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

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

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

Solution (Python):
count = 1

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

Solution (Python):
counter = 1

while True:
    x=input()
    x=int(x)

    if x==0:
        break

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

    counter = counter + 1

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

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

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

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

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

Solution (Python):
def test():

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

		print(f"Case {count}: {i}")

if __name__ == "__main__":
	test()

Solution (Python):


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

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

Solution (Python):
i = int(1)

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

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

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

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

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

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

Solution (Python):
i = 1

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

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

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

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

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

Solution (Python):


A = []
while True:
    n = int(input())
    if n != 0:
        A.append(n)
    else:
        break

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

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

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

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

Solution (Python):
import sys
num = int(sys.stdin.readline())
counter = 0
while num != 0:
  counter += 1
  print('Case ', counter, ': ', num, sep='')
  num = int(sys.stdin.readline())

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
tc = 0

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

Solution (Python):
tc = 0

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

Solution (Python):
tc = 0

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

Solution (Python):
tc = 0

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

Solution (Python):
tc = 0

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

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

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

Solution (Python):
cnt = 1

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

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

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

Solution (Python):
cnt = 1

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

Solution (Python):
cnt=0

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

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

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

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

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

Solution (Python):
c = 1

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

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

Solution (Python):
if __name__ == "__main__":
    test_case_num = 1

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

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

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

Solution (Python):
num = 1
while True:
    x = int(input())

    if x == 0: break

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

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

    if x == 0:
        break
    
    print(f'Case {i}: {x}')

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

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

Solution (Python):
case_num = 1

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

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

Solution (Python):


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

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

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

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

Solution (Python):
count = 0
v = int(input())
while (v!=0):
    count += 1
    print("Case",count,end="")
    print(":", v)
    v = int(input())

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