import sys

i=1

for l in sys.stdin:

    x=l.rstrip('\r\n')

    if x=="0":break

    print(("Case %d: %s"%(i,x)))

    i+=1
import sys

i=1

for l in sys.stdin:

    x=l.strip()

    if x=="0":break

    print(("Case %d: %s"%(i,x)))

    i+=1
import sys

i = 1
for l in sys.stdin:
    x = l.rstrip("\r\n")
    if x == "0":
        break
    print(("Case %d: %s" % (i, x)))
    i += 1

import sys

i = 1
for l in sys.stdin:
    x = l.strip()
    if x == "0":
        break
    print(("Case %d: %s" % (i, x)))
    i += 1

-    x = l.rstrip("\r\n") +    x = l.strip()