H,W,l1,l2=list(map(int,input().split()))
import numpy as np
l=np.zeros((H,W))
if l2>0:
   l[0:l2,l1:]=1
if l1>0:
   l[l2:,0:l1]=1
for i in l:
   print(*list(map(int,i)),sep="") H,W,l1,l2=list(map(int,input().split())) H list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split W l1 l2 import numpy as np numpy l=np.zeros((H,W)) l np.zeros((H,W)) np.zeros np zeros (H,W) H W if l2>0:
   l[0:l2,l1:]=1 l2>0 l2 0 l[0:l2,l1:]=1 l[0:l2,l1:] l 0:l2 0 l2 1 if l1>0:
   l[l2:,0:l1]=1 l1>0 l1 0 l[l2:,0:l1]=1 l[l2:,0:l1] l l2: l2 1 for i in l:
   print(*list(map(int,i)),sep="") i l print(*list(map(int,i)),sep="") print *list(map(int,i)) list(map(int,i)) list map(int,i) map int i sep="" sep "" l1,l2=list(map(int,input().split())) list(map(int,input().split())) l1 l=np.zeros((H,W)) np.zeros((H,W)) l W,l1,l2=list(map(int,input().split())) list(map(int,input().split())) W l2=list(map(int,input().split())) list(map(int,input().split())) l2 H,W,l1,l2=list(map(int,input().split())) list(map(int,input().split())) H
H,W,l1,l2=list(map(int,input().split()))
import numpy as np
l=np.zeros((H,W))
if l2>0:
   l[0:l2,l1:]=1
if l1>0:
   l[l2:,0:l1]=1
for i in l:
   print(*list(map(int,i)),sep="")