Poltu and Digit Product

Limits 1s, 512 MB

You are given two integer LL and RR. You have to find the summation of digit product of all number from LL to RR (inclusive).

Example of digit product:

The digit product of 154=1×5×4=20154 = 1 × 5 × 4 = 20.

The digit product of 1214=1×2×1×4=81214 = 1 × 2 × 1 × 4 = 8.

Input

The first line contains an integer TT (1T1001 \le T \le 100), number of test cases.

Next T lines contain two integer LL and RR(1LR1010001 \le L \le R \le 10^{1000}).

Output

For each test case print the case number and result mod 109+710^9 + 7.

Sample

InputOutput
2
12 14
8 10
Case 1: 9
Case 2: 17