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


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


for i in range(H):
    if i <= B-1:
        print("0"*A + "1"*(W-A))
    else:
        print("1"*A + "0"*(W-A))