newArray = []

 

x = eval(input())

 

while x != "0":    

    newArray.append(x)

    x = eval(input())

 

for i in range(len(newArray)):

    print(("Case " + str(i + 1) + ": " + newArray[i]))
import sys

i=1

for a in sys.stdin:

 a=a.strip()

 if'0'==a:break

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

 i+=1
newArray = []
x = eval(input())
while x != "0":
    newArray.append(x)
    x = eval(input())
for i in range(len(newArray)):
    print(("Case " + str(i + 1) + ": " + newArray[i]))

import sys

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

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