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: WA: Presentation Error

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: WA: Presentation Error

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: WA: Presentation Error

Solution code:
import sys

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

Submission status: WA: Presentation Error

Solution code:
import sys
 
b = 0
while True:
 a = int(sys.stdin.readline())
 if a == 0:
  break
 b += 1
 print("Case"+ str(b) +":",a)

Submission status: WA: Presentation Error

Solution code:
import sys
 
b = 0
while True:
 a = int(sys.stdin.readline())
 if a == 0:
  break
 b += 1
 print('Case'+ str(b) +':',a)

Submission status: WA: Presentation Error

Solution code:
import sys
 
b = 0
while True:
 a = int(sys.stdin.readline())
 if a == 0:
  break
 b += 1
 print('Case'+ str(b) +':', a)

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
i = 0 #????????????

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

Submission status: WA: Presentation Error

Solution code:
import sys

i = 0

while True:
    i += 1
    try:
        n = raw_input()
    except EOFError:
        sys.exit()

    if n == "0":
        sys.exit()

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

Submission status: WA: Presentation Error

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: WA: Presentation Error

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

Submission status: WA: Presentation Error

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: WA: Presentation Error

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)

func()

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
#coding: utf-8

import sys

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
x = [0 for i in range(1, 20000)]
i = 0

while(1):
	x[i] = int(input())
	if(x[i] == 0):
		exit()
	print('Case', i+1, ': ', x[i])
	i += 1

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
import sys

a = 1

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

Submission status: WA: Presentation Error

Solution code:
input_list = []
flag = True

while flag:
    input_value = input()

    if input_value == "0":
        flag = False

    input_list.append(input_value)


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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
count = 0

while True:  
 
  x = raw_input()
  
  count += 1
   
  if x == '0':
    break
    
  print('Case' + str(count) + ': ' + x)

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
import sys
for m, n in enumerate(sys.stdin):
    if int(n) == 0:
        break
    print('Case {}: {}'.format(m+1, n))

Submission status: WA: Presentation Error

Solution code:
array = []
x = input()

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

        if ans == 0:
            break

    what_large = len(data) > 10001

    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: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
s = []
while True:
    i = int(input())
    if not i:
        break
    s.append(i)

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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])
    print("Case {}:{}".format((str(i + 1)),(newArray[i])))

Submission status: WA: Presentation Error

Solution code:
newArray = []
x = input()
while x != "0":
    newArray.append(x)
    x = input()
for i in range(len(newArray)):
    print("Case {}:{}".format((str(i + 1)), (newArray[i])))

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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: WA: Presentation Error

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: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
i=1

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

Submission status: WA: Presentation Error

Solution code:
i=1

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

Submission status: WA: Presentation Error

Solution code:
i=1

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

Submission status: WA: Presentation Error

Solution code:
i=1

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

Submission status: WA: Presentation Error

Solution code:
i=1

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

Submission status: WA: Presentation Error

Solution code:
i=1

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

Submission status: WA: Presentation Error

Solution code:
i=1

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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: WA: Presentation Error

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

Submission status: WA: Presentation Error

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: WA: Presentation Error

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

Submission status: WA: Presentation Error

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: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

def main():
	i = 1
	while True:
		x = int(raw_input())
		if x == 0:
			break
		print "Case ", i, ": ", x
		i += 1

if __name__ == '__main__':
	main()

Submission status: WA: Presentation Error

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

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

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

if __name__ == '__main__':
	main()

Submission status: WA: Presentation Error

Solution code:
if __name__ == '__main__':

    numbers = []

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

    i = 1

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

Submission status: WA: Presentation Error

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