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 = 1
while True:
 a = raw_input()
 if a == '0':
  break
 print "Case %d: %s" % (i,a)
 i = i + 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

s = [x.strip() for x in sys.stdin.readlines()]
for i, j in enumerate(s):
    if j == '0':
        break
    print('Case {}: {}'.format(i + 1, j))

Submission status: Accepted

Solution code:
for i in range(1, 100000):
    num = int(input())
    if num == 0:
        break
    print('Case ' + str(i) + ':', num)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: UTF-8
# ???????????´??° x ???????????????????????????????????????????????????????????°?????????????????????????????????

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

case = 1
for n in data_set:
	print "Case %d: %d" %(case, n)
	case +=	1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

i=1
for line in sys.stdin:
    a=int(line)
    if a == 0:
        break
    else:
        print 'Case {0}: {1}'.format(i, a)
        i+=1

Submission status: Accepted

Solution code:
import sys

no = 1
while True:
    data = sys.stdin.readline().strip()
    if data == '0':
        break
    print('Case %d: %s' % (no, data))
    no += 1

Submission status: Accepted

Solution code:
i = 0

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

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: UTF-8

def PTC(a):
    for i in range(len(a)):
        if a[i] == "0":
            break
        print("Case "+ str(i+1) +": "+a[i])
        

if __name__=="__main__":
    a = []
    for i in range(10000):
        a.append(input())
        if a[i] == "0":
            break
    PTC(a)

Submission status: Accepted

Solution code:
i = 1
while True:
    n = input ()
    if n == 0 :
        break
    print "Case %d: %d" %(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:
import sys
i=1
while True:
    x=sys.stdin.readline().strip()
    if x=="0":
        break;
    print("Case %d: %s"%(i,x))
    i+=1

Submission status: Accepted

Solution code:
import sys
i=1
while True:
    x=sys.stdin.readline().strip()
    if x=="0":
        break
    print("Case %d: %s"%(i,x))
    i+=1

Submission status: Accepted

Solution code:
import sys

i = 1
for line in sys.stdin.readlines():
    x = int(line.strip())
    if x != 0:
        print("Case {}: {}".format(i, x))
    i += 1

Submission status: Accepted

Solution code:
import sys

i = 1
for line in sys.stdin.readlines():
    x = line.strip()
    if x != "0":
        print("Case {}: {}".format(i, x))
    i += 1

Submission status: Accepted

Solution code:
import sys

i = 1
for line in sys.stdin.readlines():
    x = line.strip()
    if x == "0":
        break
    print("Case {}: {}".format(i, x))
    i += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
index=1

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

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:
L=[]
N= 0
while True:
	n= int(input())
	if(n==0):
		break
	L.append(n)
	N= N+1
	
for x in range(N):
	print("Case",str(x+1)+":",L[x])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = []
num = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
index = 0
inputs = []
while True:
  index += 1
  x = input()
  if x == '0':
    break
  else:
    inputs.append("Case {}: {}".format(index, x))
print("\n".join(inputs))

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
	num = []
	cou = 0
	while True:
		a = input()
		if a == '0':
			break
		num.append(a)
	for i in num:
		cou += 1
		print("Case %d: %s"%(cou,i))

Submission status: Accepted

Solution code:
num = []
count = 0
while True:
    x = int(input())
    if x ==0:
        break
    num.append(x)
    count +=1
for i,j in zip(range(1,count+1),num):
    print('Case '+str(i)+': '+str(j))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

for index, line in enumerate(sys.stdin):
    value = int(line.strip())
    if value == 0:
        break
    print("Case {0}: {1}".format(index+1, value))

Submission status: Accepted

Solution code:
import sys
num = 0
while(True):
    x = int(sys.stdin.readline())
    num += 1
    if x == 0:
        break
    print("Case %d: %d" % (num, x))

Submission status: Accepted

Solution code:
a = []
while True:
    n = int(raw_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:
i=1
while True:
    a=int(input())
    if a == 0:
        break
    print("Case {0}: {1}".format(i,a))
    i=i+1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# import
import sys

# case??????
i = 1

# input???????????????
for s in sys.stdin:
    # 0?????´??? ????????????
    if int(s) == 0:
        break

    # ????????????
    print("Case ",i,": ",int(s),sep="")
    # case???????????????????????????
    i += 1

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    current_no = 1
    while True:
        input_num = int(input())

        if input_num != 0:
            print('Case {0}: {1}'.format(current_no, input_num))
            current_no += 1
        else:
            break

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

x=[]
while True:
    i=int(raw_input())
    if i==0:
        break;
    x.append(i)
X=iter(x)
i=1
for a in X:
    print('Case %d: %d'%(i,a))
    i+=1

Submission status: Accepted

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

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

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

    i += 1

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
import sys

i = 1

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

Submission status: Accepted

Solution code:
data = []
n = input()
while n != '0':
    data.append(n)
    n = input()
[print("Case " + str(i + 1) + ": " + item) for i, item in enumerate(data)]

Submission status: Accepted

Solution code:
import sys

list_line = sys.stdin.readlines()

for index, element in enumerate(list_line):
    list_line[index] = element.rstrip('\n')

counter = 1
for i in list_line:
    if i != '0':
        print("Case %d: %s" % (counter, i))
        counter += 1
    else:
        counter = 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dataset = []
while True:
    x = int(input())
    if not(x >= 1 and x <= 10000):
        break
    elif len(dataset) >= 10000:
        break
    elif x is not 0:
        dataset.append(x)
    else:
        break

for index, number in enumerate(dataset):
    print("Case {0}: {1}".format(index+1, str(number)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
c = 1
for i in sys.stdin.readlines() :
    if i.strip() == "0" :
        break
    else :
        print("Case " + str(c) + ":" + " " + str(i.strip()))
        c = c + 1

Submission status: Accepted

Solution code:
num = []
while True:
    x = int(input())
    if x == 0:
        break
    num.append(x)
for i, n in enumerate(num, start=1):
    print('Case {}: {}'.format(i, 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:
# -*- coding:utf-8 -*-

import sys

array = []
for i in sys.stdin:
    if int(i) == 0:
        break
    array.append(int(i))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 0
x = []
while True:
    x.append(int(raw_input()))
    if x[len(x) - 1] == 0:
        break
for i in range(len(x) - 1):
    i += 1
    print 'Case %d: %d' % (i, x[i - 1])

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
i=1
for l in sys.stdin:
    x=l.strip()
    if x=="0":break
    print("Case %d: %s"%(i,x))
    i+=1

Submission status: Accepted

Solution code:
import sys
a=1
for b in sys.stdin:
    c=b.strip()
    if c=="0":break
    print("Case %d: %s"%(a,c))
    a+=1

Submission status: Accepted

Solution code:
import sys
a=1
for b in sys.stdin:
    if b.strip()=="0":break
    print("Case %d: %s"%(a,b.strip()))
    a+=1

Submission status: Accepted

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

for j in range(i - 1):
    fmt = "Case {a}: {b}"
    s = fmt.format(a = j + 1,b = lis[j])
    print(s)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

a = []
for line in sys.stdin:
    line = int(line)
    if line == 0:
      break
    a.append(int(line))

for i,x in enumerate(a):
  print "Case %s: %s" %(i+1 ,x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import fileinput

cnt = 0

for line in fileinput.input():
    tokens = list(map(int, line.strip().split()))
    a = tokens[0]
    if a == 0:
        break
    else:
        cnt = cnt + 1
        print("Case "+str(cnt)+": "+str(a))

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
counter = 1

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

Submission status: Accepted

Solution code:
for i in range(1, 10001):
    try:
        num = input()
    except EOFError:
        break

    print('Case {0}: {1}'.format(i, num))

Submission status: Accepted

Solution code:
#!usr/bin/env python3

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


if __name__ == '__main__':
    main()


# NOTE AOJ question URL (Repetitive Processing - Print Test Cases):
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_B

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

i = 0

while i < 10000:
    num = input().rstrip()
    if int(num) > 0:
        i += 1
        print("Case " + str(i) + ": " + str(num))
    else:
        break

Submission status: Accepted

Solution code:
#!usr/bin/env python3

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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

Solution code:

i = 0 #????????????

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    i = 1
    while True:
        x = str(input())
        if x is not "0":
            print("Case %d: %s"%(i,x))
        else:
            break
        i += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
i = 1
while True:
    x = sys.stdin.readline().strip()
    if x == "0":
        break
    print("Case %d: %s"%(i, x))
    i += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
cnt = 1
a = []
while x != 0:
    print('Case %s: %d' % (cnt, x))
    x = int(input())
    cnt += 1

Submission status: Accepted

Solution code:
import sys
i = 1
while True:
    x = sys.stdin.readline().strip()
    if x == '0':
        break
    print('Case %d: %s' % (i, x))
    i += 1

Submission status: Accepted

Solution code:
x    = input()
case = 1

while x != '0' :
    print('Case {}: {}'.format(case, x))
    x = input()
    case += 1

Submission status: Accepted

Solution code:
x = []

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

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

Submission status: Accepted

Solution code:
c=0
n=1
while n!=0 :
    n=input()
    if n!=0:
        print "Case", str(c+1) + ":", n
    c=c+1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
idx = 1
while True:
    num = int(input())
    if num == 0:
        break
    else:
        print("Case {}: {}".format(idx, num))
        idx += 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:
import sys
i = 0
for x in sys.stdin.readlines():
    x = x.rstrip()
    if x == "0":
        break
    i += 1
    print("Case "+ str(i)+": "+ x)

Submission status: Accepted

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

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:
array = []
while 1:
    n = input()
    if n == "0":
        break
    array.append(n)
for i in range(len(array)):
    print("Case "+str(i+1)+": "+array[i])

Submission status: Accepted

Solution code:
import sys
cnt = 1
while 1:
	x = sys.stdin.readline().strip()
	if x == '0':
		break;
	print("Case %d: %s"%(cnt,x))
	cnt+=1

Submission status: Accepted

Solution code:
from sys import stdin

for test_case in range(10**4 + 2):
    x = int(stdin.readline())

    if not x:
        break

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 0

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

Submission status: Accepted

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

import sys
import os

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

Submission status: Accepted

Solution code:
# coding: utf-8

list = []

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = []
i = 1

while 1:
    x = int(input())
    if x == 0:
        break
    l.append(x)
    print("Case {0}: {1}".format(i,l[i-1]))
    i += 1

Submission status: Accepted

Solution code:
list = []
while True:
    n = int(input())
    if n == 0:
        break
    list.append(n)
for i,n in enumerate(list):
    print('Case %i: %i' %(i+1, n))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

while 1:
    n = int(input())

    if n == 0:
        break
    else:
        print("Case " + str(i) + ": " + str(n))
        i += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:

inputs = []

for i in range(10000) :
	inputraw = input()
	if inputraw == '0' :
		break
	inputs.append(inputraw)

for i, input in enumerate(inputs) :
	print("Case "+str(i+1)+": "+ str(input))

Submission status: Accepted

Solution code:
for i in range(1, 10001):
    a = input().strip()
    if a == "0": break
    print("Case %d: %s" % (i, a))

Submission status: Accepted

Solution code:
for i in range(1, 10001):
    a = input()
    if a == "0": break
    print("Case %d: %s" % (i, a))

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

def func():
    result = ""
    try:
        index = 0
        while (True):
            line = input().rstrip()
            num = int(line)
            if (num == 0):
                break

            index += 1
            result += "Case "+str(index)+": "+str(num)+"\n"
            
    except:
        print("input error")
        return -1
        
    print(result.rstrip())

func()

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

def func():
    result = ""
    
    index = 0
    while (True):
        try:
            line = input().rstrip()
            num = int(line)
        except:
            print("input error")
            return -1
        
        if (num == 0):
            break

        index += 1
        result += "Case "+str(index)+": "+str(num)+"\n"
    
    print(result.rstrip())

func()

Submission status: Accepted

Solution code:
#coding:UTF-8
count=1
while True:
    data = int(input())
    if(data != 0):
        text ="Case %d: %d"%(count,data)
        print (text)
    else:
        exit()
    count+=1

Submission status: Accepted

Solution code:
import sys
count = 1
while True:
    x = sys.stdin.readline().strip()
    if x == "0":
        break
    print("Case {}: {}".format(count,x))
    count += 1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
newArray = []

x = input()

while x != "0":    
    newArray.append(x)
    x = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():
    numbers = []
    bl = True
    while bl:
        inp = input()
        if inp == "0":
            bl = False
        numbers.append(inp)
    for i in range(1,len(numbers)):
        print("Case {}: {}".format(i,numbers[i-1]))
    return None

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#coding:utf-8
x = 1
i = 1
while x !=0:
    x = int(input().rstrip())
    if x == 0:
        break
    print("Case " +str(i) +": "+str(x))
    i +=1