# coding: utf-8

# Here your code !

import sys



i = 1



while True:

    n = int(eval(input()))

    

    if n == 0:

        break

    

    print(("Case " + str(i) + ": " + str(n)))

    i += 1
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)))
# coding: utf-8
# Here your code !
import sys

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

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)))

-# coding: utf-8 -# Here your code ! -import sys +from sys import stdin -i = 1 -while True: -    n = int(eval(input())) -    if n == 0: +for test_case in range(10**4 + 2): +    x = int(stdin.readline()) +    if not x: -    print(("Case " + str(i) + ": " + str(n))) -    i += 1 +    print(("Case {}: {}".format(test_case + 1, x)))