import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner cin = new Scanner(System.in);
int n = cin.nextInt();
for (int i = 1; i <= n; i++) {
String str1 = cin.next();
String str2 = cin.next();
BigInteger big1 = new BigInteger(str1);
BigInteger big2 = new BigInteger(str2);
BigInteger b = big1.add(big2);
System.out.println("Case " + i + ":");
System.out.println(big1 +" "+"+" +" "+ big2 +" "+ "=" +" "+ b);
if (i < n) {
System.out.println();
}
}
}
}