Input = input()
two = Input.split(' ')
leftNum = int(two[0])
rightNum = int(two[1])
data = list(range(leftNum,rightNum+1))
total = []
for count in range(0,10):
total.append(0)
for d in data:
for count in range(0,10):
total[count]+=str(d).count(str(count))
for t in total[:-1]:
print(t,end=' ')
print(total[-1])