if __name__ == '__main__':

    current_no = 1

    while True:

        input_num = int(eval(input()))



        if input_num != 0:

            print(('Case {0}: {1}'.format(current_no, input_num)))

            current_no += 1

        else:

            break
# -*- coding: utf-8 -*-

"""

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_B&lang=jp



"""

import sys

from sys import stdin

input = stdin.readline





def main(args):

    count = 1

    while True:

        x = int(eval(input()))

        if x == 0:

            break

        print(('Case {}: {}'.format(count, x)))

        count += 1





if __name__ == '__main__':

    main(sys.argv[1:])

    
if __name__ == "__main__":
    current_no = 1
    while True:
        input_num = int(eval(input()))
        if input_num != 0:
            print(("Case {0}: {1}".format(current_no, input_num)))
            current_no += 1
        else:
            break

# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_B&lang=jp
"""
import sys
from sys import stdin

input = stdin.readline


def main(args):
    count = 1
    while True:
        x = int(eval(input()))
        if x == 0:
            break
        print(("Case {}: {}".format(count, x)))
        count += 1


if __name__ == "__main__":
    main(sys.argv[1:])

+# -*- coding: utf-8 -*- +""" +http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_B&lang=jp +""" +import sys +from sys import stdin + +input = stdin.readline + + +def main(args): +    count = 1 +    while True: +        x = int(eval(input())) +        if x == 0: +            break +        print(("Case {}: {}".format(count, x))) +        count += 1 + + -    current_no = 1 -    while True: -        input_num = int(eval(input())) -        if input_num != 0: -            print(("Case {0}: {1}".format(current_no, input_num))) -            current_no += 1 -        else: -            break +    main(sys.argv[1:])