#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: linzihang
Language: Python
Result: Wrong Answer
****************************************************************/