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

if A > W/2 or B > H/2:
    print('No')
    exit()

for i in range(H):
    if i < B:
        print('0'*(W-A)+'1'*A)
    else:
        print('1'*(W-A)+'0'*A) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B if A > W/2 or B > H/2:
    print('No')
    exit() A > W/2 or B > H/2 A > W/2 A W/2 W 2 B > H/2 B H/2 H 2 print('No') print 'No' exit() exit for i in range(H):
    if i < B:
        print('0'*(W-A)+'1'*A)
    else:
        print('1'*(W-A)+'0'*A) i range(H) range H if i < B:
        print('0'*(W-A)+'1'*A)
    else:
        print('1'*(W-A)+'0'*A) i < B i B print('0'*(W-A)+'1'*A) print '0'*(W-A)+'1'*A '0'*(W-A) '0' W-A W A '1'*A '1' A print('1'*(W-A)+'0'*A) print '1'*(W-A)+'0'*A '1'*(W-A) '1' W-A W A '0'*A '0' A W, A, B = map(int, input().split()) map(int, input().split()) W A, B = map(int, input().split()) map(int, input().split()) A B = map(int, input().split()) map(int, input().split()) B H, W, A, B = map(int, input().split()) map(int, input().split()) H
H, W, A, B = map(int, input().split())

if A > W/2 or B > H/2:
    print('No')
    exit()

for i in range(H):
    if i < B:
        print('0'*(W-A)+'1'*A)
    else:
        print('1'*(W-A)+'0'*A)
