#include <bits/stdc++.h>

using namespace std;

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	int n;
	cin >> n;
	int cnt = 0;
	for (int i = 1; i <= n; i++) {
		if (__builtin_popcount(i) == 1) cnt++;
		cout << cnt << " ";
	}
	cout << "\n";
	return 0;
}
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define fr first
#define sc second
using namespace std;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll k;
    cin >> k;
    ll ans = 0;
    for( ll i = 1;i<=k;i++){
    	for(ll j = 1;j<=k;j++){
    		if(i*j > k) break;
    		ans = ans + k/(i*j);
    	}
    }
    cout << ans << endl;
    return 0;
}
 