Counting zeros

No attempts yetTime limit3sMemory limit256 MB

Problem

Write every integer from NN to MM on a sheet of paper, one after another, then count how many digits 0 appear on the sheet.

For example, if NN is 0 and MM is 10, the number 0 contains one zero and the number 10 contains one zero, so the answer is 2.

Input

The first line contains the number of test cases TT.

Each of the following lines contains two integers NN and MM separated by a space.

  • 1T201 \le T \le 20
  • 0NM1060 \le N \le M \le 10^6

Output

For each test case, print the number of digits 0 contained in the numbers from NN to MM, one per line.