#include
#include
#include
using namespace std;
int main(void){ int n; cin >> n; vector p; for(size_t i = 2; p.size() < n; i++) { bool b = true; for(size_t j = 0; j < p.size(); j++) if(i % p[j] == 0) { b = false; break; } if(b) p.push_back(i); } for(size_t j = 0; j< p.size(); j++) cout << p[j] << " "; cout << endl; return 0;<span>}