In the online judge system, a judge file may include multiple datasets to check whether the submitted program outputs a correct answer for each test case. This task is to practice solving a problem with multiple datasets.  Write a program which reads an integer x and print it as is. Note that multiple datasets are given for this problem.
A = []

while True:
    n = int(input())
    if n == 0:
        break
    A.append(n)

for i in range(len(A)):
    print('Case' + ' ' + str(i) + ':' + ' ' + str(A[i]))
A = []

while True:
    n = int(input())
    if n == 0:
        break
    A.append(n)

for i in range(len(A)):
    print('Case' + ' ' + str(i + 1) + ':' + ' ' + str(A[i]))