H, W, A, B = map(int, input().split())

col1 = []
col2 = []

for _ in range(A):
    col1.append("0")
    col2.append("1")
    
for _ in range(W - A):
    col1.append("1")
    col2.append("0")
    
row1 = "".join(col1)  # 011
row2 = "".join(col2)  # 100

for _ in range(B):
    print(row1)
    
for _ in range(H - B):
    print(row2) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B col1 = [] col1 [] col2 = [] col2 [] for _ in range(A):
    col1.append("0")
    col2.append("1")
     _ range(A) range A col1.append("0") col1.append col1 append "0" col2.append("1") col2.append col2 append "1" for _ in range(W - A):
    col1.append("1")
    col2.append("0")
     _ range(W - A) range W - A W A col1.append("1") col1.append col1 append "1" col2.append("0") col2.append col2 append "0" row1 = "".join(col1) row1 "".join(col1) "".join "" join col1 row2 = "".join(col2) row2 "".join(col2) "".join "" join col2 for _ in range(B):
    print(row1)
     _ range(B) range B print(row1) print row1 for _ in range(H - B):
    print(row2) _ range(H - B) range H - B H B print(row2) print row2 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 A, B = map(int, input().split()) map(int, input().split()) A row2 = "".join(col2) "".join(col2) row2 col1 = [] [] col1 row1 = "".join(col1) "".join(col1) row1 col2 = [] [] col2
H, W, A, B = map(int, input().split())

col1 = []
col2 = []

for _ in range(A):
    col1.append("0")
    col2.append("1")
    
for _ in range(W - A):
    col1.append("1")
    col2.append("0")
    
row1 = "".join(col1)  # 011
row2 = "".join(col2)  # 100

for _ in range(B):
    print(row1)
    
for _ in range(H - B):
    print(row2)