package com.test;
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
BigInteger a, b;
int t;
Scanner sca = new Scanner(System.in);
while (sca.hasNextBigInteger()) {
t = sca.nextInt();
for (int i = 1; i <=t; i++) {
a = sca.nextBigInteger();
b = sca.nextBigInteger();
System.out.println("Case " + i + ":");
System.out.println(a + " + " + b + " = " + a.add(b) + "\n");
}
}
}
}