#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (i - j < 0) cout << 0; else if (i - j == 0 && i < n / 2) cout << 1; else cout << 2; } cout << '\n'; } return 0; }