import sys

a = 1



for i in sys.stdin:

        x = i.strip()

        if x == "0":

                break;

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

        a += 1
import sys

a = 1



for i in sys.stdin:

        x = i.strip()

        if x == "0":

                break;

        print(("Case {0}: {1}".format(a,x)))

        a += 1
import sys

a = 1
for i in sys.stdin:
    x = i.strip()
    if x == "0":
        break
    print(("Case {}: {}".format(a, x)))
    a += 1

import sys

a = 1
for i in sys.stdin:
    x = i.strip()
    if x == "0":
        break
    print(("Case {0}: {1}".format(a, x)))
    a += 1

-    print(("Case {}: {}".format(a, x))) +    print(("Case {0}: {1}".format(a, x)))