H,W,A,B = list(map(int,input().split()))
M = [[0]*W for _ in range(H)]



for ih in range(H):
    for iw in range(W):
        if (ih<B and iw <A) or (ih>=B and iw >= A):
            M[ih][iw] = 1
for i in range(H):
    print(''.join(list(map(str,M[i]))))
 H,W,A,B = list(map(int,input().split())) H list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split W A B [0]*W for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) [0]*W [0] 0 W M = [[0]*W for _ in range(H)] M [[0]*W for _ in range(H)] for ih in range(H):
    for iw in range(W):
        if (ih<B and iw <A) or (ih>=B and iw >= A):
            M[ih][iw] = 1 ih range(H) range H for iw in range(W):
        if (ih<B and iw <A) or (ih>=B and iw >= A):
            M[ih][iw] = 1 iw range(W) range W if (ih<B and iw <A) or (ih>=B and iw >= A):
            M[ih][iw] = 1 (ih<B and iw <A) or (ih>=B and iw >= A) ih<B and iw <A ih<B ih B iw <A iw A ih>=B and iw >= A ih>=B ih B iw >= A iw A M[ih][iw] = 1 M[ih][iw] [ih] M ih iw 1 for i in range(H):
    print(''.join(list(map(str,M[i])))) i range(H) range H print(''.join(list(map(str,M[i])))) print ''.join(list(map(str,M[i]))) ''.join '' join list(map(str,M[i])) list map(str,M[i]) map str M[i] M i A,B = list(map(int,input().split())) list(map(int,input().split())) A H,W,A,B = list(map(int,input().split())) list(map(int,input().split())) H M = [[0]*W for _ in range(H)] [[0]*W for _ in range(H)] M W,A,B = list(map(int,input().split())) list(map(int,input().split())) W B = list(map(int,input().split())) list(map(int,input().split())) B
H,W,A,B = list(map(int,input().split()))
M = [[0]*W for _ in range(H)]



for ih in range(H):
    for iw in range(W):
        if (ih<B and iw <A) or (ih>=B and iw >= A):
            M[ih][iw] = 1
for i in range(H):
    print(''.join(list(map(str,M[i]))))

