H,W,A,B=map(int,input().split())
W-=A
for i in range(H):
    print('0'*A+'1'*W if i<B else '1'*A+'0'*W) H,W,A,B=map(int,input().split()) H map(int,input().split()) map int input().split() ().split () input split W A B W-=A W A for i in range(H):
    print('0'*A+'1'*W if i<B else '1'*A+'0'*W) i range(H) range H print('0'*A+'1'*W if i<B else '1'*A+'0'*W) print '0'*A+'1'*W if i<B else '1'*A+'0'*W i<B i B '0'*A+'1'*W '0'*A '0' A '1'*W '1' W '1'*A+'0'*W '1'*A '1' A '0'*W '0' W W-=A A W H,W,A,B=map(int,input().split()) map(int,input().split()) H 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())
W-=A
for i in range(H):
    print('0'*A+'1'*W if i<B else '1'*A+'0'*W)