h,w,a,b = map(int,input().split())
ans = []

for i in range(h):
  if i+1 <= b:
    s = "0"*a + "1"*(w-a)
  else:
    s = "1"*a + "0"*(w-a)
    
  ans.append(s)
  
for i in range(h):
  print(ans[i]) h,w,a,b = map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b ans = [] ans [] for i in range(h):
  if i+1 <= b:
    s = "0"*a + "1"*(w-a)
  else:
    s = "1"*a + "0"*(w-a)
    
  ans.append(s)
   i range(h) range h if i+1 <= b:
    s = "0"*a + "1"*(w-a)
  else:
    s = "1"*a + "0"*(w-a)
    
   i+1 <= b i+1 i 1 b s = "0"*a + "1"*(w-a) s "0"*a + "1"*(w-a) "0"*a "0" a "1"*(w-a) "1" w-a w a s = "1"*a + "0"*(w-a) s "1"*a + "0"*(w-a) "1"*a "1" a "0"*(w-a) "0" w-a w a ans.append(s) ans.append ans append s for i in range(h):
  print(ans[i]) i range(h) range h print(ans[i]) print ans[i] ans i h,w,a,b = map(int,input().split()) map(int,input().split()) h a,b = map(int,input().split()) map(int,input().split()) a b = map(int,input().split()) map(int,input().split()) b s = "1"*a + "0"*(w-a) "1"*a + "0"*(w-a) s w,a,b = map(int,input().split()) map(int,input().split()) w ans = [] [] ans s = "0"*a + "1"*(w-a) "0"*a + "1"*(w-a) s
h,w,a,b = map(int,input().split())
ans = []

for i in range(h):
  if i+1 <= b:
    s = "0"*a + "1"*(w-a)
  else:
    s = "1"*a + "0"*(w-a)
    
  ans.append(s)
  
for i in range(h):
  print(ans[i])