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

if W//2 < A or H//2 < B:
    print("No")
    exit(0)

ans = [[0 for _ in range(W)] for __ in range(H)]
for i in range(H):
    for j in range(W):
        if i >= B and j < A:
            ans[i][j] = 1
        elif i < B and j >= A:
            ans[i][j] = 1

for j in range(H):
    print("".join(str(x) for x in ans[j])) 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//2 < A or H//2 < B:
    print("No")
    exit(0) W//2 < A or H//2 < B W//2 < A W//2 W 2 A H//2 < B H//2 H 2 B print("No") print "No" exit(0) exit 0 [0 for _ in range(W)] for __ in range(H) for __ in range(H) __ range(H) range H for __ in range(H) [0 for _ in range(W)] ans = [[0 for _ in range(W)] for __ in range(H)] ans [[0 for _ in range(W)] for __ in range(H)] for i in range(H):
    for j in range(W):
        if i >= B and j < A:
            ans[i][j] = 1
        elif i < B and j >= A:
            ans[i][j] = 1 i range(H) range H for j in range(W):
        if i >= B and j < A:
            ans[i][j] = 1
        elif i < B and j >= A:
            ans[i][j] = 1 j range(W) range W if i >= B and j < A:
            ans[i][j] = 1
        elif i < B and j >= A:
            ans[i][j] = 1 i >= B and j < A i >= B i B j < A j A ans[i][j] = 1 ans[i][j] [i] ans i j 1 elif i < B and j >= A:
            ans[i][j] = 1 i < B and j >= A i < B i B j >= A j A ans[i][j] = 1 ans[i][j] [i] ans i j 1 for j in range(H):
    print("".join(str(x) for x in ans[j])) j range(H) range H print("".join(str(x) for x in ans[j])) print "".join(str(x) for x in ans[j]) "".join "" join str(x) str x ans = [[0 for _ in range(W)] for __ in range(H)] [[0 for _ in range(W)] for __ in range(H)] ans 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 B = map(int, input().split()) map(int, input().split()) B A, B = map(int, input().split()) map(int, input().split()) A
H, W, A, B = map(int, input().split())

if W//2 < A or H//2 < B:
    print("No")
    exit(0)

ans = [[0 for _ in range(W)] for __ in range(H)]
for i in range(H):
    for j in range(W):
        if i >= B and j < A:
            ans[i][j] = 1
        elif i < B and j >= A:
            ans[i][j] = 1

for j in range(H):
    print("".join(str(x) for x in ans[j]))
