#include using namespace std; using lli = long long; #define rep(i,n) for(int i=0;ibool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b ostream &operator<<(ostream &os, const vector &x){ os << "{"; for(size_t i = 0; i < x.size(); i++){ if(i < x.size()-1) os << x[i] << ", "; else os << x[i]; } os << "}"; return os; } int main(void){ int n; cin >> n; vector> s(n, vector(n)); rep(i, n) rep(j, n){ if(i < j) s[i][j] = 0; else if(i > j) s[i][j] = 2; else{ if(i%2 == 0) s[i][j] = 1; else s[i][j] = 2; } } rep(i, n){ rep(j, n){ cout << s[i][j]; } cout << endl; } return 0; }