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