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

a = ['0']*A + ['1'] * (W - A)
b = ['1']*A + ['0'] * (W - A)

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

a = ['0']*A + ['1'] * (W - A)
b = ['1']*A + ['0'] * (W - A)

for i in range(B):
    print(''.join(a))
for i in range(H-B):
    print(''.join(b))
