c = 0

while True:

    x =int(eval(input()))

    if x == 0:

        break;



    c += 1

    print(('Case', str(c) + ':', x))
count = 1

while True:

    x = input().strip()

    if x == '0':

        break

    print(('Case %s: %s' % (count, x)))

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

count = 1
while True:
    x = input().strip()
    if x == "0":
        break
    print(("Case %s: %s" % (count, x)))
    count = count + 1

-c = 0 +count = 1 -    x = int(eval(input())) -    if x == 0: +    x = input().strip() +    if x == "0": -    c += 1 -    print(("Case", str(c) + ":", x)) +    print(("Case %s: %s" % (count, x))) +    count = count + 1