# -*- coding: utf-8 -*-
H, W, A, B = map(int, input().split(' '))
row1 = [1 for _ in range(A)] + [0 for _ in range(W-A)]
row2 = [0 for _ in range(A)] + [1 for _ in range(W-A)]

table = [list(row1) for _ in range(B)] + [list(row2) for _ in range(H - B)]
for row in table:
    print(''.join(map(str, row)))




 H, W, A, B = map(int, input().split(' ')) H map(int, input().split(' ')) map int input().split(' ') ().split () input split ' ' W A B 1 for _ in range(A) for _ in range(A) _ range(A) range A for _ in range(A) 1 row1 = [1 for _ in range(A)] + [0 for _ in range(W-A)] row1 [1 for _ in range(A)] + [0 for _ in range(W-A)] [1 for _ in range(A)] [0 for _ in range(W-A)] 0 for _ in range(A) for _ in range(A) _ range(A) range A for _ in range(A) 0 row2 = [0 for _ in range(A)] + [1 for _ in range(W-A)] row2 [0 for _ in range(A)] + [1 for _ in range(W-A)] [0 for _ in range(A)] [1 for _ in range(W-A)] list(row1) for _ in range(B) for _ in range(B) _ range(B) range B for _ in range(B) list(row1) list row1 table = [list(row1) for _ in range(B)] + [list(row2) for _ in range(H - B)] table [list(row1) for _ in range(B)] + [list(row2) for _ in range(H - B)] [list(row1) for _ in range(B)] [list(row2) for _ in range(H - B)] for row in table:
    print(''.join(map(str, row))) row table print(''.join(map(str, row))) print ''.join(map(str, row)) ''.join '' join map(str, row) map str row row1 = [1 for _ in range(A)] + [0 for _ in range(W-A)] [1 for _ in range(A)] + [0 for _ in range(W-A)] row1 table = [list(row1) for _ in range(B)] + [list(row2) for _ in range(H - B)] [list(row1) for _ in range(B)] + [list(row2) for _ in range(H - B)] table H, W, A, B = map(int, input().split(' ')) map(int, input().split(' ')) H A, B = map(int, input().split(' ')) map(int, input().split(' ')) A W, A, B = map(int, input().split(' ')) map(int, input().split(' ')) W B = map(int, input().split(' ')) map(int, input().split(' ')) B row2 = [0 for _ in range(A)] + [1 for _ in range(W-A)] [0 for _ in range(A)] + [1 for _ in range(W-A)] row2
# -*- coding: utf-8 -*-
H, W, A, B = map(int, input().split(' '))
row1 = [1 for _ in range(A)] + [0 for _ in range(W-A)]
row2 = [0 for _ in range(A)] + [1 for _ in range(W-A)]

table = [list(row1) for _ in range(B)] + [list(row2) for _ in range(H - B)]
for row in table:
    print(''.join(map(str, row)))





