import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
BigInteger a;
BigInteger b;
Scanner sc = new Scanner(System.in);
int T=0;
T=sc.nextInt();
for (int i = 1; i <= T; i++) {
a=sc.nextBigInteger();
b=sc.nextBigInteger();
if(i==T) {
System.out.println("Case " + (i) + ":\r\n" + a + " + " + b + " = " + a.add(b));
}
else {
System.out.println("Case " + (i) + ":\r\n" + a + " + " + b + " = " + a.add(b)+"\r\n");
}
}
sc.close();
}
}