import sys
readline = sys.stdin.readline
H, W, B, A = map(int, readline().split())

S = [[0]*W for _ in range(H)]
for i in range(H):
    for j in range(W):
        if not ((i < A) ^ (j < B)):
            S[i][j] = 1
print('\n'.join([''.join(map(str, a)) for a in S])) import sys sys readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline H, W, B, A = map(int, readline().split()) H map(int, readline().split()) map int readline().split() ().split () readline split W B A [0]*W for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) [0]*W [0] 0 W S = [[0]*W for _ in range(H)] S [[0]*W for _ in range(H)] for i in range(H):
    for j in range(W):
        if not ((i < A) ^ (j < B)):
            S[i][j] = 1 i range(H) range H for j in range(W):
        if not ((i < A) ^ (j < B)):
            S[i][j] = 1 j range(W) range W if not ((i < A) ^ (j < B)):
            S[i][j] = 1 not ((i < A) ^ (j < B)) (i < A) ^ (j < B) i < A i A j < B j B S[i][j] = 1 S[i][j] [i] S i j 1 ''.join(map(str, a)) for a in S for a in S a S for a in S ''.join(map(str, a)) ''.join '' join map(str, a) map str a print('\n'.join([''.join(map(str, a)) for a in S])) print '\n'.join([''.join(map(str, a)) for a in S]) '\n'.join '\n' join [''.join(map(str, a)) for a in S] S = [[0]*W for _ in range(H)] [[0]*W for _ in range(H)] S A = map(int, readline().split()) map(int, readline().split()) A B, A = map(int, readline().split()) map(int, readline().split()) B H, W, B, A = map(int, readline().split()) map(int, readline().split()) H W, B, A = map(int, readline().split()) map(int, readline().split()) W readline = sys.stdin.readline sys.stdin.readline readline
import sys
readline = sys.stdin.readline
H, W, B, A = map(int, readline().split())

S = [[0]*W for _ in range(H)]
for i in range(H):
    for j in range(W):
        if not ((i < A) ^ (j < B)):
            S[i][j] = 1
print('\n'.join([''.join(map(str, a)) for a in S]))
