import numpy as np

H,W,A,B = (int(x) for x in input().split())
mt = np.zeros((H,W))
for j in range(B):
  for i in range(A):
    print(0, end="")
  for i in range(W-A):
    print(1, end="")
  print()
for j in range(H-B):
  for i in range(A):
    print(1, end="")
  for i in range(W-A):
    print(0, end="")
  print() import numpy as np numpy int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x H,W,A,B = (int(x) for x in input().split()) H (int(x) for x in input().split()) W A B mt = np.zeros((H,W)) mt np.zeros((H,W)) np.zeros np zeros (H,W) H W for j in range(B):
  for i in range(A):
    print(0, end="")
  for i in range(W-A):
    print(1, end="")
  print() j range(B) range B for i in range(A):
    print(0, end="")
   i range(A) range A print(0, end="") print 0 end="" end "" for i in range(W-A):
    print(1, end="")
   i range(W-A) range W-A W A print(1, end="") print 1 end="" end "" print() print for j in range(H-B):
  for i in range(A):
    print(1, end="")
  for i in range(W-A):
    print(0, end="")
  print() j range(H-B) range H-B H B for i in range(A):
    print(1, end="")
   i range(A) range A print(1, end="") print 1 end="" end "" for i in range(W-A):
    print(0, end="")
   i range(W-A) range W-A W A print(0, end="") print 0 end="" end "" print() print W,A,B = (int(x) for x in input().split()) (int(x) for x in input().split()) W B = (int(x) for x in input().split()) (int(x) for x in input().split()) B A,B = (int(x) for x in input().split()) (int(x) for x in input().split()) A H,W,A,B = (int(x) for x in input().split()) (int(x) for x in input().split()) H mt = np.zeros((H,W)) np.zeros((H,W)) mt
import numpy as np

H,W,A,B = (int(x) for x in input().split())
mt = np.zeros((H,W))
for j in range(B):
  for i in range(A):
    print(0, end="")
  for i in range(W-A):
    print(1, end="")
  print()
for j in range(H-B):
  for i in range(A):
    print(1, end="")
  for i in range(W-A):
    print(0, end="")
  print()
