We all know the definition of Fibonacci series: fib[i]=fib[i-1]+fib[i-2],fib=1,fib=1.And we define another series P associated with the Fibonacci series: P[i]=fib[4*i-1].Now we will give several queries about P:give two integers L,R, and calculate ∑Pi.
There is only one test case.
The first line contains single integer Q – the number of queries. (Q<=10^4)
Each line next will contain two integer L, R. (1<=L<=R<=10^12)
For each query output one line.
Due to the final answer would be so large, please output the answer mod 1000000007.