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



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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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]}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import itertools

# import numpy as np

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]}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
i=1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!python3

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(1, 100000000):
    a = int(input())
    if a == 0:
        break
    print("Case", end = " ")
    print(i, end = ": ")
    print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
no = 1

while True:
    x = int(input())

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

    x+=1
    no+=1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
i=1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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='')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
# ITP1_3_B
# Print Test Cases
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_B
# encode : utf-8
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = list(map(int, open(0).read().split()))
for id, x in enumerate(X[:-1], start=1):
    print(f'Case {id}: {x}')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=1
i=1
while(x != 0):
    
    x = int(input()) # x を繰り返し入力させる
    if(x==0):
        break
    print("Case",str(i)+":",str(x))
    i = i + 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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]}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line_no = 1
while True:
  line = input()
  if line == "0":
    break
  else:
    print(f"Case {line_no}: {line}")
  line_no += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
case_number = 1

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i=1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = 1

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:

l=1

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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]}")

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
i=1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 0;

while True:
    i += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
case_number = 1

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

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

Solution code:
x = 0
a = 1

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = 1

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

Submission status: Accepted

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