#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define rep(x, s, t) for(llint (x) = (s); (x) <= (t); (x)++) #define reps(x, s) for(llint (x) = 0; (x) < (llint)(s).size(); (x)++) #define chmin(x, y) (x) = min((x), (y)) #define chmax(x, y) (x) = max((x), (y)) #define all(x) (x).begin(),(x).end() #define outl(x) cout << x << endl #define SP << " " << #define inf 1e18 using namespace std; typedef long long llint; typedef long long ll; typedef pair P; ll n, d; int main(void) { ios::sync_with_stdio(0); cin.tie(0); cin >> n >> d; assert(d >= 1); rep(i, 1, n){ rep(j, 1, n){ if(i == 1 || j == 1) cout << 1; else cout << 0; } cout << endl; } return 0; }