#include using namespace std; #define rep(i, a, b) for (int i = a; i < b; i++) using ll = long long; int main(){ ll n, a, b, c; cin >> n >> a >> b >> c; vector> v(n, vector(n)); int s = 0; vector x{2, 1, 3}, y{b, a, c}; rep(i, 0, n) { rep(j, 0, n) { if(v[i][j]) continue; v[i][j] = x[s]; y[s]--; if(y[s] == 0) s++; } } rep(i, 0, n) { rep(j, 0, n) cout << v[i][j]; cout << endl; } }