#CSDN:Naturesicence#Nick Name:Alics#Version: 1.1
c =[0]*10#获取输入数字的位数defweishu(i):returnlen(str(i))#获取输入数字的最大位的值defmaxwei(i):
m = i //10**(weishu(i)-1)return m
#获取余数defyushu(i):
ml = i %10**(weishu(i)-1)return ml
#获取零的个数defgetzero(m):if( m ==1):return1return getzero(m -1)+10**(m -1)#主要的计算过程defanwser(i):for count0 inrange(10):
c[count0]= c[count0]+(weishu(i)-1)* maxwei(i)*10**(weishu(i)-2)for count1 inrange(int(maxwei(i))):
c[count1]= c[count1]+10**(weishu(i)-1)
c[int(maxwei(i))]= c[int(maxwei(i))]+ yushu(i)+1
t =int(yushu(i))if t ==0:
c[0]+= weishu(i)-1return c
lenc =len(str(t))if lenc !=(weishu(i)-1):
c[0]+=(weishu(i)- lenc -1)*(t +1)#输入i的中间含零的处理(列数*行数)return anwser(t)#主函数defmain():
i =eval(input())
c = anwser(i)
c[0]= c[0]- getzero(weishu(i))for count2 inrange(10):print(int(c[count2]))if"__main__":
main()