import java.io.*;
import java.nio.Buffer;
import java.util.Scanner;
import java.util.StringTokenizer;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int n = Integer.parseInt(br.readLine());
int a;
int b;
StringTokenizer number;
for(int i = 1; i <= n; i ++){
number = new StringTokenizer(br.readLine()," ");
a = Integer.parseInt(number.nextToken());
b = Integer.parseInt(number.nextToken());
bw.write("Case #" + i + ": " + a + " + "+ b + " = ");
bw.write(a+b + "\n");
}
br.close();
bw.flush();
bw.close();
}
}