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

for H in range(H):
    if H < B:
        line = '0' * A + '1' * (W-A)
    else:
        line = '1' * A + '0' * (W-A)
    print(line) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B for H in range(H):
    if H < B:
        line = '0' * A + '1' * (W-A)
    else:
        line = '1' * A + '0' * (W-A)
    print(line) H range(H) range H if H < B:
        line = '0' * A + '1' * (W-A)
    else:
        line = '1' * A + '0' * (W-A)
     H < B H B line = '0' * A + '1' * (W-A) line '0' * A + '1' * (W-A) '0' * A '0' A '1' * (W-A) '1' W-A W A line = '1' * A + '0' * (W-A) line '1' * A + '0' * (W-A) '1' * A '1' A '0' * (W-A) '0' W-A W A print(line) print line H, W, A, B = map(int, input().split()) map(int, input().split()) H line = '1' * A + '0' * (W-A) '1' * A + '0' * (W-A) line 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 line = '0' * A + '1' * (W-A) '0' * A + '1' * (W-A) line
H, W, A, B = map(int, input().split())

for H in range(H):
    if H < B:
        line = '0' * A + '1' * (W-A)
    else:
        line = '1' * A + '0' * (W-A)
    print(line)