# A - 01 Matrix
H,W,A,B = map(int,input().split())
for i in range(H):
    for j in range(W):
        print((int(i<B)+int(j<A))%2,sep='',end='')
    print('') H,W,A,B = map(int,input().split()) H map(int,input().split()) map int input().split() ().split () input split W A B for i in range(H):
    for j in range(W):
        print((int(i<B)+int(j<A))%2,sep='',end='')
    print('') i range(H) range H for j in range(W):
        print((int(i<B)+int(j<A))%2,sep='',end='')
     j range(W) range W print((int(i<B)+int(j<A))%2,sep='',end='') print (int(i<B)+int(j<A))%2 int(i<B)+int(j<A) int(i<B) int i<B i B int(j<A) int j<A j A 2 sep='' sep '' end='' end '' print('') print '' B = map(int,input().split()) map(int,input().split()) B W,A,B = map(int,input().split()) map(int,input().split()) W A,B = map(int,input().split()) map(int,input().split()) A H,W,A,B = map(int,input().split()) map(int,input().split()) H
# A - 01 Matrix
H,W,A,B = map(int,input().split())
for i in range(H):
    for j in range(W):
        print((int(i<B)+int(j<A))%2,sep='',end='')
    print('')