#include <iostream>
using namespace std;

int main(){
	int i,j,n,c;
	cin>>n;
	for(i = 1;i <= n;i++){
		c = 0;
		for(j = 2;j < i;j++){
			if(i % j == 0){
				c++;
			}
		}
		
		cout<<c<<endl;
	}
}


/**************************************************************
	Problem: 1495
	User: admin
	Language: C++
	Result: Accepted
	Time:22 ms
	Memory:2072 kb
****************************************************************/