


Consider the sum
where denotes the integer part of .
Given integers and , compute the value of .
The first line contains one integer (1 \le t \le 100\ 000) — the number of test cases. Each of the following lines contains two integers and (1 \le l \le r \le 10^{18}).
For each test case, output the value of in a separate line.
Example 1