#include<bits/stdc++.h>
using namespace std;
int s [1010];
int main() {
	int n;
	cin >> n;
	for (int i = 1; i <= n; i++) {
		for (int j = 1; j <= n; j++) {
			if (j % i == 0) {
				s[j] = 1 - s[j];
			}
		}
	}
	for (int i = 1;i <= n; i++) {
		if (s[i] == 1) {
			cout << i << " ";
		}
	}
	return 0;
}