N = int(input()) for i in range(N): print("Case #%s:"%(i+1), sum(map(int, input().split())))