H, W, A, B = map(int, input().split())

w1 = ''.join(['1'] * A + ['0'] * (W-A))
w2 = ''.join(['0'] * A + ['1'] * (W-A))
for i in range(B):
    print(w1)
for i in range(H-B):
    print(w2) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B w1 = ''.join(['1'] * A + ['0'] * (W-A)) w1 ''.join(['1'] * A + ['0'] * (W-A)) ''.join '' join ['1'] * A + ['0'] * (W-A) ['1'] * A ['1'] '1' A ['0'] * (W-A) ['0'] '0' W-A W A w2 = ''.join(['0'] * A + ['1'] * (W-A)) w2 ''.join(['0'] * A + ['1'] * (W-A)) ''.join '' join ['0'] * A + ['1'] * (W-A) ['0'] * A ['0'] '0' A ['1'] * (W-A) ['1'] '1' W-A W A for i in range(B):
    print(w1) i range(B) range B print(w1) print w1 for i in range(H-B):
    print(w2) i range(H-B) range H-B H B print(w2) print w2 w2 = ''.join(['0'] * A + ['1'] * (W-A)) ''.join(['0'] * A + ['1'] * (W-A)) w2 A, B = map(int, input().split()) map(int, input().split()) A W, A, B = map(int, input().split()) map(int, input().split()) W B = map(int, input().split()) map(int, input().split()) B H, W, A, B = map(int, input().split()) map(int, input().split()) H w1 = ''.join(['1'] * A + ['0'] * (W-A)) ''.join(['1'] * A + ['0'] * (W-A)) w1
H, W, A, B = map(int, input().split())

w1 = ''.join(['1'] * A + ['0'] * (W-A))
w2 = ''.join(['0'] * A + ['1'] * (W-A))
for i in range(B):
    print(w1)
for i in range(H-B):
    print(w2)