#include <stdio.h>
int main(void) {
int count = 0;
scanf("%d", &count);
for (int i=0; i<count; i++) {
int a, b;
scanf("%d %d", &a, &b);
printf("Case #%d: %d + %d = %d\n", i + 1, a, b, a + b);
}
return 0;
}