h,w,a,b=[int(_) for _ in input().split()]

ans=[[0 for i in range(w)]for j in range(h)]

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

ans=[[0 for i in range(w)]for j in range(h)]

for i in range(a,w):
  for j in range(b):
    ans[j][i]=1
for i in range(a):
  for j in range(b,h):
    ans[j][i]=1
    
for i in range(h):
  for j in range(w):
    print(ans[i][j],end="")
  print()