import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.math.BigInteger;
import java.util.Scanner;
public class main {
/**
* @param args
* @throws FileNotFoundException
*/
static boolean Filein_out = false;
static String inputfile = "A-large-practice.in";
static String outputfile = "std.out";
static BigInteger tmp1,tmp2;
static BigInteger BI_1 = new BigInteger("1");
static BigInteger BI_2 = new BigInteger("2");
static BigInteger BI_3 = new BigInteger("3");
static BigInteger BI_4 = new BigInteger("4");
static BigInteger BI_5 = new BigInteger("5");
static BigInteger BI_6 = new BigInteger("6");
static BigInteger BI_7 = new BigInteger("7");
public static void main(String[] args) throws FileNotFoundException {
// TODO Auto-generated method stub
Scanner cin;
PrintStream out = null;
//控制台输入
if(Filein_out == false){
cin = new Scanner(System.in);
}else{
//文件输入输出
BufferedInputStream in = new BufferedInputStream(new FileInputStream(inputfile));
System.setIn(in);
cin = new Scanner(System.in);
out = new PrintStream(new FileOutputStream(outputfile));
System.setOut(out);
}
int T = 0 ;
T=cin.nextInt();
for(int i=1;i<=T;++i){
tmp1=cin.nextBigInteger();
tmp2=cin.nextBigInteger();
System.out.println("Case #"+i+": tmp1="+tmp1+" tmp2="+tmp2+"");
}
if(Filein_out == true){
out.close();
}
}
}