#include <iostream>
using namespace std;
int main(){
int n,cnt=1;
cin>>n;
while(n--){
long long int a,b,sum=0;
cin>>a>>b;
if(a%2==0)
a++;
if(b%2==0)
b--;
for(;a<=b;a+=2)
sum+=a;
cout<<"Case "<<cnt<<": "<<sum<<endl;
cnt++;
}