import sys



i=0

while True:

	num=int( sys.stdin.readline() )

	i+=1

	if num == 0:

		break

	else:

		print(( "Case {}: {}".format( i, num ) ))
import sys



i=1

while True:

	x = int( sys.stdin.readline() )

	if 0 != x:

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

	else:

		break

	i += 1
import sys

i = 0
while True:
    num = int(sys.stdin.readline())
    i += 1
    if num == 0:
        break
    else:
        print(("Case {}: {}".format(i, num)))

import sys

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

-i = 0 +i = 1 -    num = int(sys.stdin.readline()) +    x = int(sys.stdin.readline()) +    if 0 != x: +        print(("Case {}: {}".format(i, x))) +    else: +        break -    if num == 0: -        break -    else: -        print(("Case {}: {}".format(i, num)))