import java.math.BigInteger;
import java.util.Scanner;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
while(cin.hasNextInt()) {
BigInteger a,b,result;
int t;
t = cin.nextInt();
int i = 1;
while(i<=t) {
a = cin.nextBigInteger();
b = cin.nextBigInteger();
result = a.add(b);
System.out.println("Case " + i + ":");
System.out.println(a + " + " + b + " = " + result);
if(i<t) {
System.out.println("");
}
i++;
}
}
}
}
import java.util.Scanner;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
while(cin.hasNextInt()) {
BigInteger a,b,result;
int t;
t = cin.nextInt();
int i = 1;
while(i<=t) {
a = cin.nextBigInteger();
b = cin.nextBigInteger();
result = a.add(b);
System.out.println("Case " + i + ":");
System.out.println(a + " + " + b + " = " + result);
if(i<t) {
System.out.println("");
}
i++;
}
}
}
}