a=[] 

b=eval(input())

while b!="0":    

    a.append(b)

    b=eval(input())

for c in range(len(a)):print(("Case "+str(c+1)+": "+ a[c]))
import sys

a=1

for b in sys.stdin:

 b=b.strip()

 if b=='0':break

 print(f'Case {a}: {b}')

 a+=1
a = []
b = eval(input())
while b != "0":
    a.append(b)
    b = eval(input())
for c in range(len(a)):
    print(("Case " + str(c + 1) + ": " + a[c]))

import sys

a = 1
for b in sys.stdin:
    b = b.strip()
    if b == "0":
        break
    print(f"Case {a}: {b}")
    a += 1

-a = [] -b = eval(input()) -while b != "0": -    a.append(b) -    b = eval(input()) -for c in range(len(a)): -    print(("Case " + str(c + 1) + ": " + a[c])) +import sys + +a = 1 +for b in sys.stdin: +    b = b.strip() +    if b == "0": +        break +    print(f"Case {a}: {b}") +    a += 1