#include #include #include #include #include #include #include using namespace std; #define int long long #define endl "\n" constexpr long long INF = (long long)1e18; constexpr long long MOD = 1'000'000'007; struct fast_io { fast_io(){ std::cin.tie(nullptr); std::ios::sync_with_stdio(false); }; } fio; signed main(){ cout< table; cin>>N; table.resize(N * 2); for(int i = 0; i <= N; i += 2){ table[i] = (i + 2)/2; table[i + N] = (i + 2)/2; table[i + 1] = (N + i + 3)/2; table[i + 1 + N] = (N + i + 3)/2; } for(int i = 0; i < N; i++){ for(int j = 0; j < N; j++){ if(j) cout<<" "; cout<