const n = require("fs").readFileSync(0, "utf-8").toString().split("\n");
for (let i=1; i<=n[0]; i++) {
    let [a, b] = n[i].split(" ").map(Number);
    console.log(`Case #${i}: ${a} + ${b} = ${a+b}`);
}