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