#include <bits/stdc++.h>
#define LL long long
#define ULL unsigned long long
#define pb push_back
#define st first
#define nd second
#define INF 0x3f3f3f3f
#define LINF 0x3f3f3f3f3f3f3f3f
template <class T> T read(T &a) {
    a=0;char x=getchar();bool f=0;
    for(;x<'0'||x>'9';x=getchar())f|=x=='-';
	for(;x>='0'&&x<='9';x=getchar())a=(a<<3)+(a<<1)+x-'0';
    if(f)a=-a;
    return a;
}
using namespace std;

bool vis[10005];

int main() {
    int n;
    read(n);
    for (int i = 1; i <= 10000; ++i) {
        if (i % 6 == 0 || i % 15 == 0 || i % 10 == 0) vis[i] = 1;
    }
    vis[6] = vis[10] = vis[15] = 0;
    printf("6 10 15 ");
    n -= 3;
    for (int i = 1; n; i++) {
        if (vis[i]) printf("%d ", i), n--;
    }
	return 0;
}

#include<bits/stdc++.h>

using namespace std;

int main()
{
    int k;
    cin>>k;
    
    int count = 0;
    for( long long i = 1; i <= k; i++ )
    {
        for( long long j = 1; j <= k/i; j++ )
        {
            for( long long m = 1; m <= k/(i*j); m++ )
            {
                if( i*j*m <= k )
                count++;
            }
        }
    }
    cout<<count;
}