#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define fi first #define se second #define mp make_pair #define rep(i, n) for(int i=0;i=0;--i) const int inf=1e9+7; const ll mod=1e9+7; const ll big=1e18; const double PI=2*asin(1); int main() { bool prime[1000005]; for(int i=0;i<=1000000;++i){ prime[i] = true; } prime[1] = false; for(int i=2;i<=1000000;++i){ if(prime[i]==false) continue; for(int j=2;i*j<=1000000;++j){ prime[i*j] = false; } } int N; cin>>N; vector primes; vector doubleprime; if(N==1) cout<<1<50) break; if(prime[i]==true) primes.push_back(i); } for(int i=0;i<50;++i){ for(int j=0;j<50;++j){ doubleprime.push_back(primes[i]*primes[j]); } } sort(doubleprime.begin(), doubleprime.end()); cout<