h, w, a, b = map(int, input().split())
ans_matrix = [['0'] * w for _ in range(h)]
for i in range(h):
    for j in range(w):
        if j >= a and i < b:
            ans_matrix[i][j] = '1'
        elif j < a and i >= b:
            ans_matrix[i][j] = '1'
for i in range(h):
    print(''.join(ans_matrix[i])) h, w, a, b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b ['0'] * w for _ in range(h) for _ in range(h) _ range(h) range h for _ in range(h) ['0'] * w ['0'] '0' w ans_matrix = [['0'] * w for _ in range(h)] ans_matrix [['0'] * w for _ in range(h)] for i in range(h):
    for j in range(w):
        if j >= a and i < b:
            ans_matrix[i][j] = '1'
        elif j < a and i >= b:
            ans_matrix[i][j] = '1' i range(h) range h for j in range(w):
        if j >= a and i < b:
            ans_matrix[i][j] = '1'
        elif j < a and i >= b:
            ans_matrix[i][j] = '1' j range(w) range w if j >= a and i < b:
            ans_matrix[i][j] = '1'
        elif j < a and i >= b:
            ans_matrix[i][j] = '1' j >= a and i < b j >= a j a i < b i b ans_matrix[i][j] = '1' ans_matrix[i][j] [i] ans_matrix i j '1' elif j < a and i >= b:
            ans_matrix[i][j] = '1' j < a and i >= b j < a j a i >= b i b ans_matrix[i][j] = '1' ans_matrix[i][j] [i] ans_matrix i j '1' for i in range(h):
    print(''.join(ans_matrix[i])) i range(h) range h print(''.join(ans_matrix[i])) print ''.join(ans_matrix[i]) ''.join '' join ans_matrix[i] ans_matrix i b = map(int, input().split()) map(int, input().split()) b w, a, b = map(int, input().split()) map(int, input().split()) w a, b = map(int, input().split()) map(int, input().split()) a ans_matrix = [['0'] * w for _ in range(h)] [['0'] * w for _ in range(h)] ans_matrix h, w, a, b = map(int, input().split()) map(int, input().split()) h
h, w, a, b = map(int, input().split())
ans_matrix = [['0'] * w for _ in range(h)]
for i in range(h):
    for j in range(w):
        if j >= a and i < b:
            ans_matrix[i][j] = '1'
        elif j < a and i >= b:
            ans_matrix[i][j] = '1'
for i in range(h):
    print(''.join(ans_matrix[i]))
