#include using namespace std; int main() { int v, d; cin >> v >> d; string a(v, '1'), b = "1" + string(v-1, '0'); if (d == 1) { for (int i = 0; i < v; i++) cout << a << endl; } else { cout << a << endl; for (int i = 1; i < v; i++) cout << b << endl; } }