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