d={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0} l,r=input().split(" ") l=eval(l) r=eval(r) for n in range(l,r+1): for i in range(1,n+1): a=n%i if a==0: t=str(i) d[eval(t[0])]=d[eval(t[0])]+1 else: i=i+1 for i in range(1,10): p...