for i in range(1, int(input())+1): print(f'Case {i}: {sum(i for i in range(int(input()), int(input())+1) if i%2)}')