#include<iostream>using namespace std;
int main(){ int n,a,b,sum,f=0; while(cin>>n) { for(int i=0;i<n;i++) {f++;sum=0; cin>>a>>b; for(int j=a;j<=b ;j++) { if(j%2!=0) sum+=j; } cout<<"Case "<<f<<':'<<' '<<sum<<endl; } }
}