#include // c #include // io #include #include #include #include // container #include #include #include #include #include #include // other #include #include #include #include #include using namespace std; typedef long long ll;typedef unsigned long long ull;typedef long double ld; #define ALL(c) c.begin(),c.end() #define IN(l,v,r) (l<=v && v < r) template void UNIQUE(T v){v.erase(unique(ALL(v)),v.end());} //debug #define DUMP(x) cerr << #x <<" = " << (x) #define LINE() cerr<< " (L" << __LINE__ << ")" struct range{ struct Iter{ int v,step; Iter& operator++(){v+=step;return *this;} bool operator!=(Iter& itr){return vitr.v;} int& operator*(){return v;} }; Iter i, n; rrange(int i, int n,int step):i({i-1,step}), n({n-1,step}){} rrange(int i, int n):rrange(i,n,1){} rrange(int n) :rrange(0,n){} Iter& begin(){return n;} Iter& end(){return i;} }; //input template istream& operator >> (istream& is,pair& p){return is>>p.first>>p.second;} template istream& operator >> (istream& is,tuple& t){return is >> get<0>(t);} template istream& operator >> (istream& is,tuple& t){return is >> get<0>(t) >> get<1>(t);} template istream& operator >> (istream& is,tuple& t){return is >>get<0>(t)>>get<1>(t)>>get<2>(t);} template istream& operator >> (istream& is,tuple& t){return is >> get<0>(t)>>get<1>(t)>>get<2>(t)>>get<3>(t);} template istream& operator >> (istream& is,vector& as){for(int i:range(as.size()))is >>as[i];return is;} //output template ostream& operator << (ostream& os, const set& ss){for(auto a:ss){if(a!=ss.begin())os<<" "; os< ostream& operator << (ostream& os, const pair& p){return os< ostream& operator << (ostream& os, const map& m){bool isF=true;for(auto& p:m){if(!isF)os< ostream& operator << (ostream& os, const tuple& t){return os << get<0>(t);} template ostream& operator << (ostream& os, const tuple& t){return os << get<0>(t)<<" "<(t);} template ostream& operator << (ostream& os, const tuple& t){return os << get<0>(t)<<" "<(t)<<" "<(t);} template ostream& operator << (ostream& os, const tuple& t){return os << get<0>(t)<<" "<(t)<<" "<(t)<<" "<(t);} template ostream& operator << (ostream& os, const vector& as){for(int i:range(as.size())){if(i!=0)os<<" "; os< ostream& operator << (ostream& os, const vector>& as){for(int i:range(as.size())){if(i!=0)os< inline T INF(){assert(false);}; template<> inline int INF(){return 1<<28;}; template<> inline ll INF(){return 1LL<<58;}; template<> inline double INF(){return 1e16;}; template<> inline long double INF(){return 1e16;}; template inline T EPS(){assert(false);}; template<> inline int EPS(){return 1;}; template<> inline ll EPS(){return 1LL;}; template<> inline double EPS(){return 1e-8;}; template<> inline long double EPS(){return 1e-8;}; // min{2^r | n < 2^r} template T upper_pow2(T n){ T res=1;while(res T msb(T n){ int d=62;while((1LL<n)d--;return d;} template T pmod(T v,U M){return (v%M+M)%M;} ll gcd_positive(ll a,ll b) { return b == 0 ? a : gcd_positive(b,a%b); } ll gcd(ll a,ll b) { return gcd_positive(abs(a), abs(b)); } ll lcm(ll a,ll b){return a/gcd(a,b)*b;} template struct Edge{ int from,to;Cost cost; Edge(int from,int to,Cost cost):from(from),to(to),cost(cost){}; bool operator<(Edge r) const{ return cost(Edge r) const{ return cost>r.cost;} }; // W = 2 // 1 x2 // x3 // W = 3 // 1 x2 x3 // 4 x5 // x7 // W = 4 // 1 x2 // x5 // W = 5 // 1 x2 // 6 x7 // x11 // W = 6 // 1 x2 // x7 // W = 7 // 1 x2 x3 // 8 9 10 x11 // 15 16 x17 // 22 x23 // x29 // W = 8 // 1 x2 x3 4 x5 6 x7 8 // 9 10 x11 12 x13 14 15 16 // x17 18 x19 20 21 22 x23 24 // 25 26 27 28 29 30 x31 32 // x33 34 35 36 x37 38 x39 40 // W = 9 // 1 x2 // 10 x11 // x19 // W = 10 // 1 x2 // x11 // W = 11 // 1 x2 x3 4 x5 6 x7 8 9 10 x11 // 12 x13 14 15 16 x17 18 x19 20 21 22 // x23 24 // W = 12 // 1 x2 x3 4 x5 6 x7 8 9 10 x11 12 // x13 14 15 16 x17 18 x19 20 21 22 x23 24 class Main{ public: void run(){ ll N;cin >> N; if(N>=25){ cout << 8 << endl;return; } // N = 4,6,8,9,10,12,14,15,16,18,20,21,22,24 if(N== 4){ cout << 3 << endl;return; } if(N==6){ cout << 5 <