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

L = ''.join(['1'] * A + ['0'] * (W - A))
R = ''.join(['0'] * A + ['1'] * (W - A))

ans = []
for h in range(H):
    if h < B:
        ans.append(L)
    else:
        ans.append(R)

print(*ans, sep='\n') H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B L = ''.join(['1'] * A + ['0'] * (W - A)) L ''.join(['1'] * A + ['0'] * (W - A)) ''.join '' join ['1'] * A + ['0'] * (W - A) ['1'] * A ['1'] '1' A ['0'] * (W - A) ['0'] '0' W - A W A R = ''.join(['0'] * A + ['1'] * (W - A)) R ''.join(['0'] * A + ['1'] * (W - A)) ''.join '' join ['0'] * A + ['1'] * (W - A) ['0'] * A ['0'] '0' A ['1'] * (W - A) ['1'] '1' W - A W A ans = [] ans [] for h in range(H):
    if h < B:
        ans.append(L)
    else:
        ans.append(R) h range(H) range H if h < B:
        ans.append(L)
    else:
        ans.append(R) h < B h B ans.append(L) ans.append ans append L ans.append(R) ans.append ans append R print(*ans, sep='\n') print *ans ans sep='\n' sep '\n' W, A, B = map(int, input().split()) map(int, input().split()) W 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()) map(int, input().split()) H L = ''.join(['1'] * A + ['0'] * (W - A)) ''.join(['1'] * A + ['0'] * (W - A)) L R = ''.join(['0'] * A + ['1'] * (W - A)) ''.join(['0'] * A + ['1'] * (W - A)) R ans = [] [] ans
H, W, A, B = map(int, input().split())

L = ''.join(['1'] * A + ['0'] * (W - A))
R = ''.join(['0'] * A + ['1'] * (W - A))

ans = []
for h in range(H):
    if h < B:
        ans.append(L)
    else:
        ans.append(R)

print(*ans, sep='\n')