/*    ∫ ∫ ∫    ノヽ   (_  )  (_    ) (______ )  ヽ(´・ω・)ノ     |  /    UU */ #pragma region macro #include typedef long long int64; using namespace std; using P = pair; typedef vector vi; const int MOD = (int)1e9 + 7; const int64 INF = 1LL << 62; const int inf = 1<<30; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b ostream& operator<<(ostream& os, const vector &V){ int N = V.size(); REP(i,N){ os << V[i]; if (i!=N-1) os << " "; } os << "\n"; return os; } template ostream& operator<<(ostream& os, pair const&P){ os << P.first; os << " "; os << P.second; return os; } template ostream& operator<<(ostream& os, set &S){ auto it=S.begin(); while(it!=S.end()){ os << *it; os << " "; it++; } os << "\n"; return os; } template ostream& operator<<(ostream& os, deque &q){ for(auto it=q.begin();it> dxdy = {mp(0,1),mp(1,0),mp(-1,0),mp(0,-1)}; #pragma endregion //fixed< data; Eratosthenes(int N):N(N){ data.assign(N+1,-1); for(int64 i=2;i*i<=N;i++){ if(data[i]!=-1) continue; for (int j=i; j<=N; j+=i){ data[j] = i; } } } int64 prime_factorization(int X){ map pri; while (data[X]!=-1){ int prime = data[X]; pri[prime] += 1; X /= prime; } if(X!=1) pri[X] += 1; int64 res = 1; for(auto it=pri.begin(); it!=pri.end(); it++) res *= ((*it).second+1); return res; } }; int main(){ cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; Eratosthenes Era(N); int64 ans = INF; vector> ans_vec; for(int i=1;i=abs((i-pri_i)-(j-pri_j))) ans_vec.emplace_back(i,j); } for(auto a:ans_vec) cout << a << bn; }