def convert(s): 
  
    # initialization of string to "" 
    new = "" 
  
    # traverse in the string  
    for x in s: 
        new += x  
  
    # return string  
    return new 

h,w,a,b=map(int,input().split())
k=[]
for i in range(a):
  k.append('0')
for i in range(w-a):
  k.append('1')
k=convert(k)
t=[]
for i in range(a):
  t.append('1')
for i in range(w-a):
  t.append('0')
t=convert(t)
for i in range(b):
  print(k)
for i in range(h-b):
  print(t) def convert(s): 
  
    # initialization of string to "" 
    new = "" 
  
    # traverse in the string  
    for x in s: 
        new += x  
  
    # return string  
    return new  convert new = "" new "" for x in s: 
        new += x  
  
    # return string  
     x s new += x new x return new new s s h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b k=[] k [] for i in range(a):
  k.append('0') i range(a) range a k.append('0') k.append k append '0' for i in range(w-a):
  k.append('1') i range(w-a) range w-a w a k.append('1') k.append k append '1' k=convert(k) k convert(k) convert k t=[] t [] for i in range(a):
  t.append('1') i range(a) range a t.append('1') t.append t append '1' for i in range(w-a):
  t.append('0') i range(w-a) range w-a w a t.append('0') t.append t append '0' t=convert(t) t convert(t) convert t for i in range(b):
  print(k) i range(b) range b print(k) print k for i in range(h-b):
  print(t) i range(h-b) range h-b h b print(t) print t w,a,b=map(int,input().split()) map(int,input().split()) w k=[] [] k k=convert(k) convert(k) k a,b=map(int,input().split()) map(int,input().split()) a t=convert(t) convert(t) t def convert(s): 
  
    # initialization of string to "" 
    new = "" 
  
    # traverse in the string  
    for x in s: 
        new += x  
  
    # return string  
    return new  def convert(s): 
  
    # initialization of string to "" 
    new = "" 
  
    # traverse in the string  
    for x in s: 
        new += x  
  
    # return string  
    return new  convert t=[] [] t h,w,a,b=map(int,input().split()) map(int,input().split()) h b=map(int,input().split()) map(int,input().split()) b
def convert(s): 
  
    # initialization of string to "" 
    new = "" 
  
    # traverse in the string  
    for x in s: 
        new += x  
  
    # return string  
    return new 

h,w,a,b=map(int,input().split())
k=[]
for i in range(a):
  k.append('0')
for i in range(w-a):
  k.append('1')
k=convert(k)
t=[]
for i in range(a):
  t.append('1')
for i in range(w-a):
  t.append('0')
t=convert(t)
for i in range(b):
  print(k)
for i in range(h-b):
  print(t)