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

ans = []

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

ans = []

for i in range(B):
    lst = [1]*A + [0] *(W-A)
    print(*lst, sep='')
for i in range(H-B):
    lst = [0]*A + [1] *(W-A)
    print(*lst, sep='')
