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:
for i in range(10000):
    n=int(input())
    if n!=0 :
        print("Case "+str(i+1)+": "+str(n))
    else :
        break

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

Solution code:
i = 1
while True:
    x = int(input())

    if x == 0:
        break
    print("Case ", end="")
    print(i, end="")
    print(": ", end="")
    print(x)
    i = i+1

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
flag = 0
cnt = 1
while flag == 0:
    x = int(input())
    if x != 0:
      print("Case "+str(cnt)+": "+str(x))
      cnt += 1
    else:
        flag = 1

Submission status: Accepted

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

if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
li = []
while True:
    num = int(input())
    if num == 0:
        break
    else:
        li.append(num)

number = len(li)

for i in range(number):
    case_num = str(i+1)
    print('Case', case_num+':', li[i])

Submission status: Accepted

Solution code:
import sys
i=0;
while i<10000:
    x=input()
    if (x==0):
        break
    i=i+1
    print('Case '+str(i)+': '+str(x))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li=[]
for i in range(10000):
    li.append(int(input()))
    print("Case "+str(i+1)+": "+str(li[i]))

Submission status: Accepted

Solution code:
def test():
    inp = 1
    count = 1
    while inp != 0:
        inp = input()
        if inp == '0':
            break
        print(f'Case {count}: {inp}')
        count += 1

if __name__ == '__main__':
    test()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1
while True:
    a = int(input())
    

    if a == 0:
        break

    print('Case {}: {}'.format(i, a))

    i += 1

Submission status: Accepted

Solution code:
import sys
input_l = []
i = 1

for input in map(int, sys.stdin):
    if input == 0:
        break
    else:
        print("Case " + str(i) + ": " + str(input))
        i += 1

Submission status: Accepted

Solution code:
x = list(iter(input, '0'))

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

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:
num = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
case_num = 1


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_number = -1
data_set = []
while input_number != 0:
    input_number = int(input())
    if input_number == 0:
        break
    data_set.append(input_number)

for index in range(len(data_set)):
    print('Case '+str(index+1)+': '+str(data_set[index]))

Submission status: Accepted

Solution code:
n = 1
num = []
while 1:
    tmp = int(input())
    if tmp == 0:
        break
    else:
        num.append(tmp)

for i in num:
    print("Case",n,end="")
    print(":",i)
    n += 1

Submission status: Accepted

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

Submission status: Accepted

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

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

for i in range(10000):
    i = int(input())
    if i == 0:
        break
    else:
        data.append(i)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

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

Submission status: Accepted

Solution code:
case=1

while True:
    num=int(input())
    if num == 0:
        break
    else:
        print("Case %d: %d" %(case,num))
        case+=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:
for i in range(10001):
  n = int(input())
  if n != 0:
    print("Case " + str(i+1) +": " + str(n))
  else:
    break;

Submission status: Accepted

Solution code:
x = []
for i in iter(input, '0'):
    x.append(i)
for i in range(len(x)):
    print(f'Case {i+1}: {x[i]}')

Submission status: Accepted

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

Submission status: Accepted

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

for num in range(i):
    print(f'Case {num+1}: {list[num]}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
number = 1
 

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
a = itertools.count(1)


while True:
    n = int(input())
    if  n == 0:
        break
    else:
        print("Case {}: {}".format(next(a),n))

Submission status: Accepted

Solution code:
import math
import copy
from copy import deepcopy
import sys
import fractions
# import numpy as np
from functools import reduce
# import statistics
import heapq
import collections
import itertools
sys.setrecursionlimit(100001)

# input = sys.stdin.readline
# sys.setrecursionlimit(10**6)

# ===FUNCTION===

def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList


# ===CODE===
cnt = 0
while True:
    cnt += 1
    x = int(input())
    if x != 0:
        print("Case ", cnt, ": ", x, sep="")
    else:
        exit(0)

Submission status: Accepted

Solution code:
# coding: utf-8
n = 0
while True:
    n += 1
    a = input()
    if a == "0":
        break
    print("Case "+str(n)+": "+a)

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
#2020-03-18
i = 0
while True:
    i += 1
    a = int(input())
    if a == 0:
        break
    print(f'Case {i}: {a}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = 0

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

Submission status: Accepted

Solution code:
ans = []
while True:
    c = input()
    if c == '0':
        break
    ans.append(c)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())
i = 1
while x:
    print(f'Case {i}: {x}')
    x = int(input())
    i += 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

Submission status: Accepted

Solution code:
a=[1]
c=1
while a[-1]!=0:
    b=int(input())
    a.append(b)
b=len(a)-2
for i in range(b):
    print("Case %d: %d"%(c,a[c]))
    c+=1

Submission status: Accepted

Solution code:
output=[]
i=1
while True:
	x=int(input())
	if x!=0:
		output.append('Case ' + str(i) + ': ' + str(x))
		i+=1
	else:
		break
print('\n'.join(output))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lst=[]
while True:
    inp=int(input())
    if inp==0:
        break
    lst.append(inp)
for i,j in enumerate(lst,start=1):
    print('Case {}: {}'.format(i,j))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# テストケースの出力

# 0が来るまで無限ループ
count = 1
while True:
    x = int(input())
    if x==0:
        break

    print("Case %d: %d"%(count, x))
    count += 1

Submission status: Accepted

Solution code:
import sys
c = 1
l = []
for i in sys.stdin:
    l.append(int(i))
for i in l:
    if i == 0:
        exit()
    else:
        print("Case " + str(c) + ": " + str(i))
    c += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cnt = 0
while True:
    cnt = cnt + 1
    x = int(input())
    if x == 0:
        break

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

Submission status: Accepted

Solution code:
index = 1

while True:
    num = int(input())

    if num == 0:
        break

    print('Case {index}: {num}'.format(index=index, num=num))

    index += 1

Submission status: Accepted

Solution code:
idx = 1

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

  result = 'Case {}: {}'.format(idx, n)
  print(result)
  idx += 1

Submission status: Accepted

Solution code:
i = 0
while True:
    i += 1
    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("Case " + str(i) + ": " + str(x))
    i += 1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
counter = 1

while True:
    a = int(input())

    if a==0:
        break
    print("Case %d: %d" %(counter, a))
    counter = counter + 1

Submission status: Accepted

Solution code:
counter = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
x = input()
i = 1

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

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

Submission status: Accepted

Solution code:
num=1


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1
while True:
    x =int(input())
    if x ==0:
        break
    else:
        print('Case {}: {}'.format(i,x))
        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:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
num = 1
while num < 10001:
    s = input()
    if s == "0" :
        break
    print("Case ", str(num), ": ", s, sep="")
    num += 1

Submission status: Accepted

Solution code:
count = 1

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

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:
for i in range(1, 10001):
    x = input()
    if x == "0":
        break
    print("Case {}: {}".format(i, x))

Submission status: Accepted

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

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:
# -*- coding: utf-8 -*-
import sys

#tmp= int(input())
#tmp = input().split()
#W,H,x,y,r = list(map(lambda a: int(a), tmp))


for i in range(0,10000):
    tmp= int(input())
    if(tmp==0):
        sys.exit()

    strout="Case "+str(i+1)+": "+str(tmp)
    print(strout)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = 1

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
case_num = 1

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

Submission status: Accepted

Solution code:
def printTestCase():
    i = 1
    while 1:
        val = int(input())
        if val == 0:
            break
        print('Case %d: %d' % (i, val))
        i += 1

if __name__ == '__main__':
    printTestCase()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(1, 10000 + 1):
    x = input().split()
    ans = "Case " + str(i) + ": " + str(x[0])
    print(ans)

Submission status: Accepted

Solution code:
x = []
for _ in range(1,10001):
    tmp = int(input())
    if tmp == 0:
        break
    x.append(tmp)


for i, x_num in enumerate(x):
    print(f'Case {i+1}: {x_num}')

Submission status: Accepted

Solution code:
case_number = 1

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

Submission status: Accepted

Solution code:
count = 0
x = []
x.append(int(input()))
while x[count] != 0:
    count += 1
    x.append(int(input()))
    
for i in range(count):
    print("Case", str(i+1) + ":", str(x[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:
for i in range(1,10001):
    s = input()
    t = int(s)
    if t == 0:
        break
    else:
        print('Case {}: {}'.format(i,t))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1

while i <= 10000:
    a = input()
    if a != "0":
        print("Case", i, end="")
        print(":", a)
        i += 1
    else:
        i = 10001

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 1
ans_list = list()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = []
s = int(input())
while s != 0:
    A.append(s)
    s = int(input())
for i in range(len(A)):
    print('Case ' + str(i+1) + ': ' + str(A[i]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(100000009) :
    x = input()
    if x == '0' :
        break
    else :
        print("Case " + str(i + 1) + ": " + x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def testcase_ends(case_id):
    n = int(input())
    if n == 0: return True

    print('Case {}: {}'.format(case_id, n))
    return False

def main():
    i = 1
    while not testcase_ends(i):
        i += 1

main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
x = []
while True:
    tmp = int(input())
    if tmp != 0:
        x.append(tmp)
    elif tmp == 0:
        break

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

Submission status: Accepted

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

a = []
while True:
    x = input().strip()
    if x == '0':
        break
    a.append(x)

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