H,W,A,B = map(int,input().split())
ans = [[0 for i in range(W)] for j in range(H)]

for h in range(B):
    for w in range(A,W):
        ans[h][w] = 1

for h in range(B,H):
    for w in range(A):
        ans[h][w] = 1

for a in ans:
    for n in a:
        print(n,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 [0 for i in range(W)] for j in range(H) for j in range(H) j range(H) range H for j in range(H) [0 for i in range(W)] ans = [[0 for i in range(W)] for j in range(H)] ans [[0 for i in range(W)] for j in range(H)] for h in range(B):
    for w in range(A,W):
        ans[h][w] = 1 h range(B) range B for w in range(A,W):
        ans[h][w] = 1 w range(A,W) range A W ans[h][w] = 1 ans[h][w] [h] ans h w 1 for h in range(B,H):
    for w in range(A):
        ans[h][w] = 1 h range(B,H) range B H for w in range(A):
        ans[h][w] = 1 w range(A) range A ans[h][w] = 1 ans[h][w] [h] ans h w 1 for a in ans:
    for n in a:
        print(n,end='')
    print()  a ans for n in a:
        print(n,end='')
     n a print(n,end='') print n end='' end '' print() print A,B = map(int,input().split()) map(int,input().split()) 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 B = map(int,input().split()) map(int,input().split()) B ans = [[0 for i in range(W)] for j in range(H)] [[0 for i in range(W)] for j in range(H)] ans
H,W,A,B = map(int,input().split())
ans = [[0 for i in range(W)] for j in range(H)]

for h in range(B):
    for w in range(A,W):
        ans[h][w] = 1

for h in range(B,H):
    for w in range(A):
        ans[h][w] = 1

for a in ans:
    for n in a:
        print(n,end='')
    print() 