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:
import sys
 
count = 1
 
for i in sys.stdin:
    i = i.rstrip()
    if i == "0":
        break
    print('Case {0}: {1}'.format(count, i))
    count += 1

Submission status: Accepted

Solution code:
w=114514
a=[]
i=0
while(w!=0):
    w=int(input())
    a.append(w)
a.remove(0)
for k in a:
    i+=1
    print("Case {0}: {1}".format(i,k))

Submission status: Accepted

Solution code:
i = 1
while 1:
    x = int(input())
    if i > 10000 or (x < 1 or 10000 < x):
        break
    print('Case ' + str(i) + ': ' + str(x))
    i += 1

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
l = []
while True:
    n = int(input())
    if (n == 0):
        break;
    l.append(n)
for i,k in enumerate(l):
    print("Case {}: {}".format(i+1,k))

Submission status: Accepted

Solution code:
def main():
    data = []
    while 1:
        n = input().split()
        ans = int(n[0])

        if ans == 0:
            break

        data.append(ans)


    length = len(data)
    what_large = length > 10000

    if what_large:
        print("Too Large")
    else:
        for i in range(len(data)):
            d_val = data[i]

            if d_val != 0:
                print("Case {0}: {1}".format(i+1,d_val))
            else:
                break

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8
array = []
while True:
    t = input()
    if t == 0:
        break
    array.append(t)
for i in range(len(array)):
    print "Case %d: %d" % (i + 1,array[i])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=[] 
b=input()
while b!="0":    
    a.append(b)
    b=input()
for c in range(len(a)):print("Case "+str(c+1)+": "+ a[c])

Submission status: Accepted

Solution code:
import sys
a=1
for b in sys.stdin:
 b=b.strip()
 if b=='0':break
 print('Case {0}: {1}'.format(a,b))
 a+=1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#Repetitive Processing - Print Test Cases

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
### Repetitive Processing - Print Test Cases

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-

import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

a = 1
for i in array:
  print('Case ' + str(a) + ': ' + str(i))
  a += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: UTF-8

i=1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
# -*- coding: utf-8 -*-
### 0 を入力されるまで数値入力を繰り返す。
### 入力が終わったら
### 入力された数値を Case i: '入力値' の形で１行ずつ表示する。

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

Submission status: Accepted

Solution code:
a = []
while True:
    n = input()
    if n == 0:
        break
    a.append(n)
i = 0
for case in a:
    i+=1
    print "Case "+str(i)+": "+str(case)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

a = []

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

cnt = 0
for i in a:
    cnt += 1
    if i == 0:
        break
    print("Case " + str(cnt) + ": " + str(i))

Submission status: Accepted

Solution code:

num = 1

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
c = 1
while True:
    n = int(input())
    if n == 0:
        break
    print('Case {0}: {1}'.format(c, n))
    c += 1

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! python3
# print_test_cases.py

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
 
i=1
for s in sys.stdin:
  n = int(s)
  if n == 0:
    break
  print("Case ",i,": ",n,sep="")
  i += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_value = None
i = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

    return rtn_list

rtn = input_until_zero()

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

Submission status: Accepted

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

Submission status: Accepted

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

    i += 1

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:
x = []

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r=[]
while 1:
    a=int(input())
    if not a:break
    r.extend([a])
[print("Case {}: {}".format(i+1,j)) for (i,j) in enumerate(r)]

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8

a = []

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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:
lis = []
while True:
    x = int(input())
    lis.append(x)
    if x == 0:
        break
lis.pop()
for z,y in enumerate(lis):
    print("Case "+str(z+1)+": "+str(lis[z]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# Print Test Cases

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve(test):

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

    
 

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

            test.append(n)
    solve(test)


   

if __name__ =='__main__':
    answer()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# itp1_3_b

i = 1

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