#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
void file() {
  freopen("alost.in", "r", stdin);
  freopen("output.txt", "w", stdout);
}
bool ar[10000005];
void sieve() {
  ar[0] = ar[1] = 1;
  for (long long i = 2; i * i <= (int)1e7; i++)
    if (!ar[i])
      for (long long j = i * i; j <= (int)1e7; j += i) ar[j] = 1;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL), cout.tie(NULL);
  ;
  sieve();
  int n;
  cin >> n;
  for (int i = 2; i <= (int)1e7 && n; i++)
    if (!ar[i]) cout << i << " ", n--;
  cout << endl;
  return 0;
}
