cnt = 0

num = int(eval(input()))

while num != 0:

  cnt+=1

  print(('Case {0}: {1}'.format(cnt, num)))

  num = int(eval(input()))
import sys

cnt = 1

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

while num != "0":

    print(("Case "+ str(cnt) +  ": " + num))

    cnt+=1

    num = sys.stdin.readline().strip()
cnt = 0
num = int(eval(input()))
while num != 0:
    cnt += 1
    print(("Case {0}: {1}".format(cnt, num)))
    num = int(eval(input()))

import sys

cnt = 1
num = sys.stdin.readline().strip()
while num != "0":
    print(("Case " + str(cnt) + ": " + num))
    cnt += 1
    num = sys.stdin.readline().strip()

-cnt = 0 -num = int(eval(input())) -while num != 0: +import sys + +cnt = 1 +num = sys.stdin.readline().strip() +while num != "0": +    print(("Case " + str(cnt) + ": " + num)) -    print(("Case {0}: {1}".format(cnt, num))) -    num = int(eval(input())) +    num = sys.stdin.readline().strip()