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

for i in range(H):
    z, o = ('0', '1') if i < B else ('1', '0')
    print(''.join([z] * A + [o] * (W - A))) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B for i in range(H):
    z, o = ('0', '1') if i < B else ('1', '0')
    print(''.join([z] * A + [o] * (W - A))) i range(H) range H z, o = ('0', '1') if i < B else ('1', '0') z ('0', '1') if i < B else ('1', '0') i < B i B ('0', '1') '0' '1' ('1', '0') '1' '0' o print(''.join([z] * A + [o] * (W - A))) print ''.join([z] * A + [o] * (W - A)) ''.join '' join [z] * A + [o] * (W - A) [z] * A [z] z A [o] * (W - A) [o] o W - A W A H, W, A, B = map(int, input().split()) map(int, input().split()) H A, B = map(int, input().split()) map(int, input().split()) A z, o = ('0', '1') if i < B else ('1', '0') ('0', '1') if i < B else ('1', '0') z o = ('0', '1') if i < B else ('1', '0') ('0', '1') if i < B else ('1', '0') o W, A, B = map(int, input().split()) map(int, input().split()) W B = map(int, input().split()) map(int, input().split()) B
H, W, A, B = map(int, input().split())

for i in range(H):
    z, o = ('0', '1') if i < B else ('1', '0')
    print(''.join([z] * A + [o] * (W - A)))
