#include using namespace std; //#include //atcoder //using namespace atcoder; //atcoder #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") using ll = long long; using ld = long double; using vi = vector; using vl = vector; using vc = vector; using vs = vector; using vb = vector; using vd = vector; using vld = vector; using vvi = vector>; using vvl = vector>; using vvc = vector>; using vvs = vector>; using vvb = vector>; using vvd = vector>; using vvld = vector>; // Graph using Graph = vector>; using Nodes = pair; //using pri = priority_queue; //最大値 using pri = priority_queue, greater>; //最小値 #define _GLIBCXX_DEBUG #define endl "\n" #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(f,x,...) ([&](decltype((x)) whole) { return (f)(begin(whole), end(whole), ## __VA_ARGS__); })(x) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() const int INF = 1e9; const int MININF = -1e9; const ll LINF = 1e18; const ll MINLINF = -1e18; const int MOD = 1e9+7; const int MODD = 998244353; // 8方向(4方向ならN=4で止め。) vi vx={0, 1, 0, -1, 1, 1, -1, -1}; vi vy={1, 0, -1, 0, 1, -1, -1, 1}; // a bool chmax(T &a, const T& b){ if(abならaをbに更新 template bool chmin(T &a, const T& b){ if(a > b){ a = b; return true; } return false; } // 最大公約数 template T gcd(T A,T B){ if(B==0)return A; return gcd(B,A%B); } // 最小公倍数 template T lcm(T A, T B){ return A / gcd(A, B) * B; } // 素数判定 template bool prime(T N){ if(N==1)return false; for (ll i=2;i*i<=N;i++){ if (N%i == 0)return false; } return true; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin>>N; for(int i=N-100;i<=N+100;i++){ if(i==1)continue; if(!prime(i)){ cout<