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:
i = 0
while True:
    n = int(input())
    if n == 0:
        break

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

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=0
while True:
    i+=1
    n=input()
    if n==0:
        break
    print 'Case '+str(i)+': '+str(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# coding: utf-8

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

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

if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from __future__ import division, print_function
from sys import stdin

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

Submission status: Accepted

Solution code:
from __future__ import division, print_function
from sys import stdin

i = 1
for line in stdin:
    x = int(line)
    if x == 0:
       break
    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 "+str(i)+": "+str(a)
 i+=1

Submission status: Accepted

Solution code:
if __name__ == '__main__':

    numbers = []

    while True:
        x = int(raw_input())
        if x == 0:
            break
        numbers.append(x)

    i = 1

    for n in numbers:
        print 'Case %d: %d' % (i, n)
        i += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

c = 0
while True:
    i = int(sys.stdin.readline())
    if (i == 0):
        break
    c+=1
    print("Case " + str(c) + ":", i)

Submission status: Accepted

Solution code:
table=[]
n = 0
while True:
    s = int(input())
    if s == 0:
        break
    table.append(s)

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

Submission status: Accepted

Solution code:
x = []
count = 0

while(1):
    num = int(input())
    if (num == 0):
        break
    count = count + 1
    x.append(num)

for i in range(0,count):
    print("Case ",end="")
    print(i+1,end=": ")
    print(x[i])

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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:

list=[int(a) for a in input().split()]

n=0

while True:
    num = int(input())
    if num == 0:
        break
    list.append(num)
    
for i, e in enumerate(list):
    i=i+1
    print("Case {}: {}".format(i, e))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_list = []

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

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

Submission status: Accepted

Solution code:
lists=[]
for i in range(10000):
    a=input()
    if a=="0":
        break
    lists.append(a)

i=1

for j in lists:
    print("Case {0}: {1}".format(i,j))
    i=i+1

Submission status: Accepted

Solution code:
i=int(0)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list()
casenum = 0

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

    l.append(x) 

for num in l:
    print("Case {}: {}".format(casenum+1,l[casenum]))
    casenum += 1

Submission status: Accepted

Solution code:
value_list = []
while True:
    value = input()
    if value == "0":
        break
    if value:
        value_list.append(value)
for i, num in enumerate(value_list, 1):
    print(f"Case {i}: {num}")

Submission status: Accepted

Solution code:
case = 1
x = int(input())
while x!=0:
    print('Case {}: {}'.format(case,x))
    x = int(input())
    case += 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:
stopper = 1
data = []
while stopper == 1:
	a = int(input())
	if a == 0:
		stopper = 0
	else:
		data.append(a)
for k in range(len(data)):
	print("Case ",(k+1),": ",data[k],sep = "")

Submission status: Accepted

Solution code:
d = []
while True:
  x = int(input())
  if x == 0:
    break
  else:
    d.append(x)

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

Submission status: Accepted

Solution code:
import sys
i = 1
while True:
    N = int(input())
    if N != 0:
        print('Case {0}: {1}'.format(i, N))
        i += 1
    elif N == 0:
        sys.exit()

Submission status: Accepted

Solution code:
i =0
while 1:
    x = int(input())
    if x == 0:
        break
    else:
        i = i+1
        print("Case",i,end="")
        print(":",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 = list()
i = 0

while True:
    z = int(input())
    x.append(z)
    if x[i] == 0:
        break
    else:
        print("Case ",i+1,": ",x[i],sep="")
        i += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
num = []
s = sys.stdin.readlines()
for t in s:
    num.append(int(t.split()[0]))

for i,n in enumerate(num):
    if n == 0:
        break
    print(f"Case {i+1}: {n}")

Submission status: Accepted

Solution code:
count = 0
while True:
    x = int(input())
    if x == 0:
        break
    if x >= 1 and x <= 10000:
        count += 1
        print ('Case '+str(count)+": "+str(x))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list()
while True:
    x = int(input())
    if x == 0:
        break
    l.append(x)
    
for i in range(len(l)):
    print(f"Case {i+1}: {l[i]}")

Submission status: Accepted

Solution code:
A=[]
while True:
    s=int(input())
    if s==0:
        break
    else:
        A.append(s)

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

Submission status: Accepted

Solution code:
list=[int(a) for a in input().split()]

n=0

while True:
    num = int(input())
    if num == 0:
        break
    list.append(num)
    
for i, e in enumerate(list):
    i=i+1
    print("Case {}: {}".format(i, e))

Submission status: Accepted

Solution code:
i = 0

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

Submission status: Accepted

Solution code:
cases = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
i = 1

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

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:

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

for i, v in enumerate(nums,start=1):
    print(f'Case {i}: {v}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 0

while True:
    x = int(input())

    if x == 0:
        break

    i += 1

    print("Case {0}: {1}" . format(i, x))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
q = []
while True:
    n = int(input())
    q.append(n)
    if n == 0:
        q.remove(0)
        break
ans = 0
for i in range(1,len(q)+1):
    print("Case {}:".format(i),q[ans])
    ans += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

sample()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = []
while True:
    n = int(input())
    if n == 0:
        break
    else:
        a.append(n)
[print(f'Case {i+1}: {num}') for i, num in enumerate(a)]

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = 1
a = []
while x !=0:
    x = int(input())
    a.append(x)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=[]
while True:
  e = str(input())
  if e=="0":
    break
  l.append(e)

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

Submission status: Accepted

Solution code:
n=0
while(True):
    var=int(input())
    n+=1
    if(var!=0):
        print("Case "+str(n)+": "+str(var))
    elif(int(var)==0):
        break

Submission status: Accepted

Solution code:
for i in range(1,10001):
    N = int(input())
    if N == 0:
        exit()
    print(f"Case {i}: {N}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1
while True:
    n = input()
    if n == "0":
        break

    print("Case " + str(i) + ": " + n)

    i += 1

Submission status: Accepted

Solution code:
import sys
i = 1
while True:
    n = int(input())
    if n == 0:
        sys.exit()
    print('Case {0}: {1}'.format(i, n))
    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:
C=[]
while True:
    n=int(input())
    if n==0:
        break
    C.append(n)
for k in range(1,len(C)+1):
    print(f"Case {k}: {C[k-1]}")

Submission status: Accepted

Solution code:
#ITP1_3_B
i = 0
while True:
    x = int(input())
    if x == 0:
        break
    else:
      i = i + 1
      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 += 1

Submission status: Accepted

Solution code:
#
# 3b
#

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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = 0
cases = []
a = 0

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

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

Submission status: Accepted

Solution code:
i=1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
case_num = 1


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

Submission status: Accepted

Solution code:
c=0

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

Submission status: Accepted

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

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=1 
n=int(input())
while n is not 0:
    print(f"Case {i}: {n}")
    n=int(input())
    i+=1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
for cnt, l in enumerate(sys.stdin):
	if l == "0\n":
		break
	print(f"Case {cnt+1}: {int(l)}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=list()
while True:
    x=int(input())
    if x==0:
        break
    l.append(x)
for i in range(len(l)):
    print(f"Case {i+1}: {l[i]}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
XS = open(0).read().split()
for i, x in enumerate(XS):
    if x == "0":
        break
    else:
        print("Case {}: {}".format(i+1, x))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=[int(input()) for i in range(10000)]

for i in range(10000):
    if x[i] == 0:
        break
    else:
        print(f"Case {i+1}: {x[i]}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
flg = 1
ls = []
count = 1
while 1:
    n = int(input())
    if n != 0:
        ls.append(n)
        print("Case ",count,": ",n,sep="")
        count += 1
    else:
        break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = []
while True:
  i = input()
  if i == '0':
    break
  l.append(i)
for ind, item in enumerate(l):
  print(f'Case {ind+1}: {item}')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
counter = 0

while True:
    num = int(input())

    if num == 0:
        break

    counter += 1
    print("Case %d: %d" % (counter, num))

Submission status: Accepted

Solution code:
import sys


def resolve():
    idx = 1
    for num_s in sys.stdin:
        num = int(num_s)
        if num == 0:
            break
        print("Case {}: {}".format(idx, int(num)))
        idx += 1


resolve()

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

counter = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = []
var = 1
while var == 1:
    item = int(input())
    inp.append(item)
    if inp[-1] == 0:
        break

for i in range(0,len(inp)-1):
    print('Case %d: %d' % (i+1, inp[i]))

Submission status: Accepted

Solution code:
lst =[]
for i in range(10000):
    lst.append(int(input()))
    if lst[i] == 0:
        for v in range(len(lst)-1):
            print(f'Case {v+1}: {lst[v]}')
        break
if 0 not in lst:
    for i in range(10000):
        print(f'Case {i+1}: {lst[i]}')

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

Submission status: Accepted

Solution code:
l = []
while True:
  io = int(input())
  if io == 0:
    break
  l.append(io)
i = 1
for n in l:
  print("Case {0}: {1}".format(i, n))
  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:
case_cnt = 1
while(True):
    l = int(input())
    if l == 0:
        break
    print("Case",case_cnt,end = '')
    print(":",l)
    case_cnt+=1

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 0
while True:
    x = int(input())
    if x == 0: break
    i = 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
    else:
            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:
for i in range(1,10001):
    x=int(input())
    if x==0:
        break
    print(f'Case {i}: {x}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

i = 0
a = []

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

    i += 1

for j in range(i):
    print("Case %s: %s" % (j+1, a[j]))

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:

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