c=1

while True:

	i=eval(input())

	if(i=="0"):

		break

	print(("Case "+str(c)+": "+i))

	c+=1
# encoding:utf-8

count = 1

while True:

	input = input()

	if input == "0":

		break

	text = "Case " + ": ".join(map(str, (count, input)))

	print(text)

	count += 1
c = 1
while True:
    i = eval(input())
    if i == "0":
        break
    print(("Case " + str(c) + ": " + i))
    c += 1

# encoding:utf-8
count = 1
while True:
    input = input()
    if input == "0":
        break
    text = "Case " + ": ".join(map(str, (count, input)))
    print(text)
    count += 1

-c = 1 +# encoding:utf-8 +count = 1 -    i = eval(input()) -    if i == "0": +    input = input() +    if input == "0": -    print(("Case " + str(c) + ": " + i)) -    c += 1 +    text = "Case " + ": ".join(map(str, (count, input))) +    print(text) +    count += 1