import sys

name = "A-small"
path = "2021/round1/"

sys.stdin = open(path + name + ".in")

testCases = int(input())

def solve():
    size = int(input())
    for i in range(size):  
        nums = (input().split())
        

# sum them all up and then get two prime factors
    

for testCase in range(1, testCases + 1):
    
    print("Case #" + str(testCase) + ": " + ("%d" % solve()))