import java.io.*;
import java.nio.Buffer;
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());
StringTokenizer number;
for(int i = 1; i <= n; i ++){
number = new StringTokenizer(br.readLine()," ");
bw.write("Case #" + i + ": ");
bw.write(Integer.parseInt(number.nextToken()) + Integer.parseInt(number.nextToken()) + "\n");
}
br.close();
bw.flush();
bw.close();
}
}