1. JAVA, Till Fischer

/*
 ============================================================================
 Name            : Main.java
 Author            : Till Fischer
 Description    : 10783 - Odd Sum
 Accepted        : Accepted
 Time            : 0.110
 ============================================================================
 */

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));
        int cases = Integer.parseInt(reader.readLine());
        int sum, a, b, tmp,i;
        for (i = 1; i <= cases; i++) {
            sum = 0;
            a = Integer.parseInt(reader.readLine());
            b = Integer.parseInt(reader.readLine());
            if(a > b) { // make a the min
                tmp = a;
                a = b;
                b = tmp;
            }
            //a even?
            if(a % 2 == 0) {
                a++;
            }
            for(;a <= b; a +=2)
                sum += a;
            
            writer.append("Case " + i + ": " + sum + "\n");
        }
        
        //always be nice to streams!
        reader.close();
        writer.flush();
        writer.close();
    }
}