import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

import numpy as np

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

X = np.zeros((H,W),np.int8)

X[:B,:A] = 1
X[B:,A:] = 1

print('\n'.join(''.join(row) for row in X.astype(str))) import sys sys read = sys.stdin.buffer.read read sys.stdin.buffer.read sys.stdin.buffer sys.stdin sys stdin buffer read readline = sys.stdin.buffer.readline readline sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline readlines = sys.stdin.buffer.readlines readlines sys.stdin.buffer.readlines sys.stdin.buffer sys.stdin sys stdin buffer readlines import numpy as np numpy H,W,A,B = map(int,read().split()) H map(int,read().split()) map int read().split() ().split () read split W A B X = np.zeros((H,W),np.int8) X np.zeros((H,W),np.int8) np.zeros np zeros (H,W) H W np.int8 np int8 X[:B,:A] = 1 X[:B,:A] X :B B 1 X[B:,A:] = 1 X[B:,A:] X B: B 1 print('\n'.join(''.join(row) for row in X.astype(str))) print '\n'.join(''.join(row) for row in X.astype(str)) '\n'.join '\n' join ''.join(row) ''.join '' join row B = map(int,read().split()) map(int,read().split()) B read = sys.stdin.buffer.read sys.stdin.buffer.read read readlines = sys.stdin.buffer.readlines sys.stdin.buffer.readlines readlines H,W,A,B = map(int,read().split()) map(int,read().split()) H W,A,B = map(int,read().split()) map(int,read().split()) W X = np.zeros((H,W),np.int8) np.zeros((H,W),np.int8) X readline = sys.stdin.buffer.readline sys.stdin.buffer.readline readline A,B = map(int,read().split()) map(int,read().split()) A
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

import numpy as np

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

X = np.zeros((H,W),np.int8)

X[:B,:A] = 1
X[B:,A:] = 1

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