int main() {
bool *A;
long N;
cin >> N;
A = new bool[N * 100 + 1];
int i, k;
for (int i = 2; i <= N * 100; i++)
A[i] = true;
k = 2;
while (k * k <= N * 100) {
if (A[k]) {
i = k * k;
while (i <= N * 100)
{
A[i] = false;
i += k;
}
}
k++;
}
int j = 0;
for (int i = 2; i <= N * 100; i++) {
if (A[i] && j < N) {
cout << i << " ";
j++;
}
if (j == N)
break;
}
return 0;
}