#include <bits/stdc++.h>
using namespace std;
#define int long long
#define boost                         \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL)
#define testcases \
    int t;        \
    cin >> t;     \
    while (t--)
#define rep(i, n) for (int i = 1; i <= n; i++)
#define Rep(j, n) for (int j = i; j < n; j++)

int32_t main()
{
    boost;
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++)
    {
        int x = log2(i);
        cout << x + 1 << " ";
    }
}
#include<bits/stdc++.h>

int main(){
    using namespace std;
    unsigned long N;
    cin >> N;
    for(unsigned long i{1}; i <= N; ++i)cout << 64 - __builtin_clzl(i) << " ";
    cout << endl;
    return 0;
}
