#include using namespace std; int main(){ int N,temp; multiset A; cin>>N; int ans[N]; fill(ans,ans+N,0); for(int i=0;i>temp; A.insert(temp); } for(int i=1;i<=*A.rbegin();++i){ temp=0; for(int j=i;j<=*A.rbegin();j+=i){ temp+=A.count(j); } ans[N-temp]=i; } cout<