#include <bits/stdc++.h>
using namespace std;

#define int long long
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

signed main(){
	int n;
	cin >> n;
	set<int> st;

	for(int i = n;i >= 1;i--){
		if(st.find(i*2) == st.end()){
			st.insert(i);
		}else{
			break;
		}
	}

	int cnt = 0;
	for(auto e : st){
		cout << e;
		if(cnt < st.size()-1){
			cout << " ";
		}
	}

	cout << endl;

	return 0;
}