import sys
T = int(input())
N = []
for i in range (T):
    A, B = map(int, sys.stdin.readline().strip().split())
    N.append(A+B)
for i in range (T):
    print ("Case #{}:".format(i+1), N[i])
f5eb1e7d1df43653e98e9b8897358da4e59928af
<mask token>

<mask token>
for i in range(T):
    A, B = map(int, sys.stdin.readline().strip().split())
    N.append(A + B)
for i in range(T):
    print('Case #{}:'.format(i + 1), N[i])

<mask token>
T = int(input())
N = []
for i in range(T):
    A, B = map(int, sys.stdin.readline().strip().split())
    N.append(A + B)
for i in range(T):
    print('Case #{}:'.format(i + 1), N[i])

import sys
T = int(input())
N = []
for i in range(T):
    A, B = map(int, sys.stdin.readline().strip().split())
    N.append(A + B)
for i in range(T):
    print('Case #{}:'.format(i + 1), N[i])

import sys
T = int(input())
N = []
for i in range (T):
    A, B = map(int, sys.stdin.readline().strip().split())
    N.append(A+B)
for i in range (T):
    print ("Case #{}:".format(i+1), N[i])