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();
    		   }
    	   }
       }
}

  

posted on 2011-09-23 16:26  枫叶飘泪  阅读(177)  评论(0编辑  收藏  举报