#Q171. 「一本通 5.3 练习 4」数字计数

「一本通 5.3 练习 4」数字计数

Description

Original source: ZJOI 2010

Given two positive integers aa and bb, find how many times each digit (0-9) appears in all integers within the interval [a,b][a, b].

Input Format

The input consists of a single line containing two integers aa and bb, as described above.

Output Format

Output a single line with 1010 integers, representing the count of digits 00 through 99 in the interval [a,b][a, b].

Sample 1

1 99

9 20 20 20 20 20 20 20 20 20

Constraints & Hints

For 30%30\% of the test cases, 1ab1061\le a\le b\le 10^6;
For 100%100\% of the test cases, 1ab10121\le a\le b\le 10^{12}.