i=1

while True:

    n=eval(input())

    if not n:

        break

    print("Case %d: %d"%(i,n))

    i+=1
import sys





def resolve():

    idx = 1

    for num_s in sys.stdin:

        num = int(num_s)

        if num == 0:

            break

        print(("Case {}: {}".format(idx, int(num))))

        idx += 1





resolve()

i = 1
while True:
    n = eval(input())
    if not n:
        break
    print("Case %d: %d" % (i, n))
    i += 1

import sys


def resolve():
    idx = 1
    for num_s in sys.stdin:
        num = int(num_s)
        if num == 0:
            break
        print(("Case {}: {}".format(idx, int(num))))
        idx += 1


resolve()

-i = 1 -while True: -    n = eval(input()) -    if not n: -        break -    print("Case %d: %d" % (i, n)) -    i += 1 +import sys + + +def resolve(): +    idx = 1 +    for num_s in sys.stdin: +        num = int(num_s) +        if num == 0: +            break +        print(("Case {}: {}".format(idx, int(num)))) +        idx += 1 + + +resolve()