array = []

while True:

    x= eval(input())

    if x == 0:

    	break

    array.append(x)



for i in range(len(array)):

	print(('Case {0}: {1}'.format(i+1,array[i])))
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

array = []
while True:
    x = eval(input())
    if x == 0:
        break
    array.append(x)
for i in range(len(array)):
    print(("Case {0}: {1}".format(i + 1, array[i])))

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

-array = [] -while True: -    x = eval(input()) -    if x == 0: +import sys + +a = sys.stdin +i = 1 +for line in a: +    if int(line) == 0: -    array.append(x) -for i in range(len(array)): -    print(("Case {0}: {1}".format(i + 1, array[i]))) +    print("Case {0}: {1}".format(i, line), end="") +    i += 1