h,w,a,b = map(int,input().split())
ans = [[] for _ in [0]*h]
for i in range(b):
  ans[i] = "0"*a + "1"*(w-a)
for i in range(b,h):
  ans[i] = "1"*a + "0"*(w-a)

for i in ans:
  print(i)

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

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

for i in ans:
  print(i)

  
