c = 0

while True:

    a = eval(input())

    if a == 0: break

    c += 1

    print('Case %d: %d' %(c, a))
c = 0

while True:

    a = int(input())

    if a == 0: break

    c += 1

    print('Case %d: %d' %(c, a))
c = 0
while True:
    a = eval(input())
    if a == 0:
        break
    c += 1
    print("Case %d: %d" % (c, a))

c = 0
while True:
    a = int(input())
    if a == 0:
        break
    c += 1
    print("Case %d: %d" % (c, a))

-    a = eval(input()) +    a = int(input())