H, W, A, B = map(int, input().split())
if W<=A or H<=B:
    print("No")
    exit()
K = "1"*A + "0"*(W-A)
L = "0"*A + "1"*(W-A)
for i in range(H):
    if i <= B-1:
        print(K)
    else:
        print(L) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B if W<=A or H<=B:
    print("No")
    exit() W<=A or H<=B W<=A W A H<=B H B print("No") print "No" exit() exit K = "1"*A + "0"*(W-A) K "1"*A + "0"*(W-A) "1"*A "1" A "0"*(W-A) "0" W-A W A L = "0"*A + "1"*(W-A) L "0"*A + "1"*(W-A) "0"*A "0" A "1"*(W-A) "1" W-A W A for i in range(H):
    if i <= B-1:
        print(K)
    else:
        print(L) i range(H) range H if i <= B-1:
        print(K)
    else:
        print(L) i <= B-1 i B-1 B 1 print(K) print K print(L) print L B = map(int, input().split()) map(int, input().split()) B K = "1"*A + "0"*(W-A) "1"*A + "0"*(W-A) K A, B = map(int, input().split()) map(int, input().split()) A W, A, B = map(int, input().split()) map(int, input().split()) W L = "0"*A + "1"*(W-A) "0"*A + "1"*(W-A) L H, W, A, B = map(int, input().split()) map(int, input().split()) H
H, W, A, B = map(int, input().split())
if W<=A or H<=B:
    print("No")
    exit()
K = "1"*A + "0"*(W-A)
L = "0"*A + "1"*(W-A)
for i in range(H):
    if i <= B-1:
        print(K)
    else:
        print(L)