H, W, A, B = input().strip().split()
H, W, A, B = [int(H), int(W), int(A), int(B)]

for i in range(B): # i = 0, 1, ..., B-1
    print('1' * A + '0' * (W - A))

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

for i in range(B): # i = 0, 1, ..., B-1
    print('1' * A + '0' * (W - A))

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