import numpy as np

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

grid = np.zeros((H, W), np.int8)
grid[:, :A] ^= 1
grid[:B] ^= 1

print('\n'.join(''.join(row) for row in grid.astype(str))) import numpy as np numpy H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B grid = np.zeros((H, W), np.int8) grid np.zeros((H, W), np.int8) np.zeros np zeros (H, W) H W np.int8 np int8 grid[:, :A] ^= 1 grid[:, :A] grid : 1 grid[:B] ^= 1 grid[:B] grid :B B 1 print('\n'.join(''.join(row) for row in grid.astype(str))) print '\n'.join(''.join(row) for row in grid.astype(str)) '\n'.join '\n' join ''.join(row) ''.join '' join row H, W, A, B = map(int, input().split()) map(int, input().split()) H A, B = map(int, input().split()) map(int, input().split()) A grid = np.zeros((H, W), np.int8) np.zeros((H, W), np.int8) grid W, A, B = map(int, input().split()) map(int, input().split()) W B = map(int, input().split()) map(int, input().split()) B
import numpy as np

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

grid = np.zeros((H, W), np.int8)
grid[:, :A] ^= 1
grid[:B] ^= 1

print('\n'.join(''.join(row) for row in grid.astype(str)))