#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef long double ld;
const int N = (int)2e5 + 77;
const ll mod = (ll)1e9 + 7;
const ll inf = (ll)1e18;

int main()
{
  ll n, ans = 1, sp[33] = {0}, cnt[33] = {0};
  cin >> n;
  for (int i = 2; i <= n; i++)
  {
    for (int j = i; j <= n; j += i)
    {
      if (sp[j] == 0)
        sp[j] = i;
    }
  }
  for (int i = 2; i <= n; i++)
  {
    ll c[33] = {0}, k = i;
    while (k > 1)
    {
      c[sp[k]]++;
      k /= sp[k];
    }
    for (int j = 2; j <= n; j++)
      cnt[j] = max(cnt[j], c[j]);
  }
  for (int i = 2; i <= n; i++)
  {
    int k = cnt[i];
    while (k--)
      ans = ans * i;
  }
  cout << ans + 1 << endl;
  return 0;
}
#include <bits/stdc++.h>
using namespace std;

#define faster      ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define pi          acos(-1.0)
#define nl          '\n'

/**-------Library-------*/
#define mem(a,b)       memset(a,b,sizeof(a))
#define all(a)         a.begin(),a.end()
#define Sort(x)        sort(x.begin(),x.end())
#define SortR(x)       sort(x.begin(),x.end(),greater<int>())
#define Reverse(x)     reverse(x.begin(),x.end())

#define Sum(A,n)       accumulate(A,A+n,0)
#define SortA(ar,s)    sort(ar,ar+s)
#define SortD(ar,s)    sort(ar,ar+s,greater<int>())
#define maxa(A,n)      *max_element(A,A+n)
#define mina(A,n)      *min_element(A,A+n)
#define gcd(a,b)       __gcd(a,b)
#define lcm(a,b)       (a*(b/gcd(a,b)))
#define sq(x)          (x)*(x)
#define mid(l,r)       (l+(r-l)/2)

#define trzero(x)       __builtin_ctz(x)
#define parity(x)       __builtin_parity(x)
#define countone(x)     __builtin_popcount(x)
#define left(p)         (p<<1)
#define right(p)        (p>>1)

#define min3(a,b,c)       min(a,min(b,c))
#define min4(a,b,c,d)     min(a,min(b,min(c,d)))
#define max3(a,b,c)       max(a,max(b,c))
#define max4(a,b,c,d)     max(a,max(b,max(c,d)))
#define pb(x)             push_back(x)
#define mod               1000000007
#define precision(x)      cout<<fixed<<setprecision(x)
#define nel               cout<<nl
#define yes               cout<<"YES"<<nl
#define no                cout<<"NO"<<nl

/**----------Graph Moves----------*/
const int fx[] = {+1,-1,+0,+0};                         // 4 X directions
const int fy[] = {+0,+0,+1,-1};                         // 4 Y directions
const int fx8[] = {+0,+0,+1,-1,-1,+1,-1,+1};            // King X Moves
const int fy8[] = {-1,+1,+0,+0,+1,+1,-1,-1};            // King Y Moves
const int kx[] = {-2, -2, -1, -1,  1,  1,  2,  2};      // Knight X Moves
const int ky[] = {-1,  1, -2,  2, -2,  2, -1,  1};      // Knight Y Moves

/**----data type----*/
typedef long long int ll;
typedef unsigned long long int  llu;

int main()
{
    int n;
    cin>>n;
    n-=3;

    cout<<6<<" "<<10<<" "<<15<<" ";

    for(int i=16; ; i++)
    {
        if(n==0)
            return 0;

        if(i%6==0 || i%15==0 || i%10==0)
        {
            cout<<i<<" ";
            i++;
            n--;
        }
    }
    return 0;
}
