#include<bits/stdc++.h>
#define mod 998244353
#define int long long
using namespace std;

inline int read() {
    int x=0,f=1;
    char ch=getchar();
    while(ch<'0'||ch>'9'){
        if(ch=='-')
            f=-1;
        ch=getchar();
    }
    while(ch>='0'&&ch<='9'){
        x=(x<<1)+(x<<3)+(ch^48);
        ch=getchar();
    }
    return x*f;
}


int n;



signed main() {
	cin>>n;
	for(int i=1;i<=n;i++) {
		int ans=1,now=i;
		for(int j=2;1ll*j*j<=i;j++) {
			while(now%j==0) ans++,now/=j;
		}
		if(now!=1) ans++;
		cout<<ans<<' ';
	}
}






 
#include<bits/stdc++.h>
using namespace std;
int n,a[101010];
int main()
{
	cin>>n;
	a[1]=1;
	for(int i=2;i<=n;i++)
	{
		for(int j=1;j*j<=i;j++)
		{
			if(i%j!=0)
			{
				continue;
			}
			a[i]=max(a[i],a[j]+1);
			if(j!=1)
			{
				a[i]=max(a[i],a[i/j]+1);
			}
		}
	}
	for(int i=1;i<=n;i++)
	{
		cout<<a[i]<<' ';
	}
	cout<<endl;
	return 0;
}