#include<stdio.h>

int main()
{
	int n;
	int a[125],b[125];
	scanf("%d", &n);
	for(int i=0;i<n;i++){
		do{
			scanf("%d %d",&a[i],&b[i]);
		}while(a[i]&&b[i]<=0 || a[i]&&b[i]>10);
	}
	for(int i=0;i<n;i++){
		printf("Case %d : %d\n", i+1,a[i]+b[i]);
	}
	getchar();
	return 0;
}