a = int(input()) b = int(input()) s = [0,0,0,0,0,0,0,0,0,0] while a <= b: n = a a += 1 while n != 0: i = n % 10 s[i] += 1 n //= 10 print(s)