#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b A){ ll L = A.size(); FOR(i, 0, L){ if(i) cout << ' '; cout << std::setfill('0') << std::right << std::setw(3) << A[i]; } cout << endl; } int main(){ cin.tie(0); ios::sync_with_stdio(false); // input ll N; cin >> N; vector > A(N, vector(N, 0)); ll x = -1; ll y = 0; ll d = 0; // 0, 1, 2, 3 ll id = 1; ll loop = 1000; while(loop--){ ll tx = x; ll ty = y; if(d==0) tx++; else if(d==1) ty++; else if(d==2) tx--; else ty--; if(0<=tx && tx