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