#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int a[205]={0};
for (int i =0;i<=n;i++)
{
int ge;
int tmp = i;
while (tmp!=0)
{
ge = tmp%10;
a[ge] ++;
tmp= tmp/10;
}
}
for (int i =0;i<=n;i++)
{
if (a[i]!=0)cout << a[i]<<endl;
}
return 0;
}
/**************************************************************
Problem: 1178
User: mariooo
Language: C++
Result: Accepted
Time:10 ms
Memory:2072 kb
****************************************************************/