i = 1

while 1:

	x = int(eval(input()))

	if x == 0:

		break

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

	i = i + 1
i = 0

while True:

	x = int(eval(input()))

	if x == 0: break

	i = i + 1

	print(("Case " + str(i) + ": " + str(x)))
i = 1
while 1:
    x = int(eval(input()))
    if x == 0:
        break
    print(("Case " + str(i) + ": " + str(x)))
    i = i + 1

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

-i = 1 -while 1: +i = 0 +while True: +    i = i + 1 -    i = i + 1