LR

Limits 1s, 512 MB

This task is simple. You will be given 22 positive integers LL and RR.

Find the number of positive even integers xx such that LxRL \leq x \leq R.

Input

The first line of input contains an integer TT denoting the number of test cases.

The only line of each test case contains two integers LL and RR.

Constraints

1T1001 \le T \le 100

1LR10001 \leq L \leq R \leq 1000

Output

Output one integer, the answer to the problem.

Sample

InputOutput
1
1 2
1