Solve the programming task below in a Python markdown code block.
Aayush has recently started teaching Latin Dance. Today, he will be teaching Salsa. For this, he needs to divide the people attending his dance class into pairs. Usually in Salsa, the dance pairs consist of one girl and one boy. But Aayush doesn't find this convention very interesting. He is rather more concerned about the IQ of people who are members of the same pair. Precisely, if the sums of digits of the IQ score of the two people forming a pair are co-prime, then the pair will be $\text{awkward}$ according to Aayush. For example IQ scores 12 (1+2=3) and 22 (2+2=4) form an awkward pair.

The IQ scores of all the people attending the Salsa class are pairwise distinct. The lowest IQ is $\text{L}$ and the largest IQ is $\text{R}$. Moreover, there are exactly $\text{R-L+1}$ people attending the Salsa class. Aayush wants to know the number of ways in which an awkward pair can be formed modulo $10^{9}+7$. Two ways are different if at least one of the members in the pairs formed is different.

------ Input ------
The first line contains a single interger $\text{T}$ - the number of testcases.

Each of the following $\text{T}$ lines contains two space separated integers $\text{L}$ and $\text{R}$, as described in the problem.

------ Output ------
For every test case, print an integer answer modulo $10^{9}+7$.

------ Constraints  ------
$1 ≤ \text{T} ≤ 10$

$1 ≤ \text{L, R} ≤ 10^{18}$

------ Sample Input ------
	2
	5 8
	7 10

------ Sample Output ------
	5
	6