#include <bits/stdc++.h>
using namespace std;
int prime[670000], is_prime[10000000 + 5];
int cnt;
int main() {
  int i;
  for (i = 2; i <= 10000000; ++i)
    if (!is_prime[i]) {
      prime[cnt++] = i;
      for (int j = i; j <= 10000000; j += i) is_prime[j] = 1;
    }
  int n;
  scanf("%d", &n);
  printf("2");
  for (int i = 1; i < n; ++i) printf(" %d", prime[i]);
  printf("\n");
  return 0;
}
