import pandas as pd
array = [ ]
for i in range ( 0 , 10000 ) :
array .append ( sum ( list ( map ( int , str ( i) ) ) ) )
#sr=pd.Series(array)
srv = pd.Series ( array ) .value_counts ( ) .sort_index ( )
print ( srv)
aW1wb3J0IHBhbmRhcyBhcyBwZAoKYXJyYXkgPSBbXQpmb3IgaSBpbiByYW5nZSgwLDEwMDAwKToKICAgIGFycmF5LmFwcGVuZChzdW0obGlzdChtYXAoaW50LHN0cihpKSkpKSkKCiNzcj1wZC5TZXJpZXMoYXJyYXkpCnNydiA9cGQuU2VyaWVzKGFycmF5KS52YWx1ZV9jb3VudHMoKS5zb3J0X2luZGV4KCkKCnByaW50KHNydikK
stdin
aW1wb3J0IHBhbmRhcyBhcyBwZAoKYXJyYXkgPSBbXQpmb3IgaSBpbiByYW5nZSgwLDEwMDAwKToKICAgIGFycmF5LmFwcGVuZChzdW0obGlzdChtYXAoaW50LHN0cihpKSkpKSkKCiNzcj1wZC5TZXJpZXMoYXJyYXkpCnNydiA9cGQuU2VyaWVzKGFycmF5KS52YWx1ZV9jb3VudHMoKS5zb3J0X2luZGV4KCkKCnByaW50KHNydikK
import pandas as pd
array = []
for i in range(0,10000):
array.append(sum(list(map(int,str(i)))))
#sr=pd.Series(array)
srv =pd.Series(array).value_counts().sort_index()
print(srv)