#include <bits/stdc++.h>
using namespace std;
const int N = 1001;
bool a[N];
int main() {
int n;
cin >> n;
// 服务员人数
for(int i=1; i<=n; i++) {
// 门数
for(int j=1; j<=n; j++) {
if(j % i == 0) {
if(a[j] == 1) {
a[j] = 0;
} else {
a[j] = 1;
}
}
}
}
for(int i=1; i<=n; i++) {
if(a[i] == 1) {
cout << i << ' ';
}
}
return 0;
}