H,W,A,B = map(int,input().split())
grid = [[1]*W for i in range(H)]
for i in range(B):
    for j in range(A):
        grid[i][j] = 0
for i in range(B,H):
    for j in range(A,W):
        grid[i][j] = 0
#print(grid)
for col in range(H):
    a = grid[col]
    anscol = ''
    for e in a:
        anscol += str(e)
    print(anscol) H,W,A,B = map(int,input().split()) H map(int,input().split()) map int input().split() ().split () input split W A B [1]*W for i in range(H) for i in range(H) i range(H) range H for i in range(H) [1]*W [1] 1 W grid = [[1]*W for i in range(H)] grid [[1]*W for i in range(H)] for i in range(B):
    for j in range(A):
        grid[i][j] = 0 i range(B) range B for j in range(A):
        grid[i][j] = 0 j range(A) range A grid[i][j] = 0 grid[i][j] [i] grid i j 0 for i in range(B,H):
    for j in range(A,W):
        grid[i][j] = 0
#print(grid) i range(B,H) range B H for j in range(A,W):
        grid[i][j] = 0
#print(grid) j range(A,W) range A W grid[i][j] = 0 grid[i][j] [i] grid i j 0 for col in range(H):
    a = grid[col]
    anscol = ''
    for e in a:
        anscol += str(e)
    print(anscol) col range(H) range H a = grid[col] a grid[col] grid col anscol = '' anscol '' for e in a:
        anscol += str(e)
     e a anscol += str(e) anscol str(e) str e print(anscol) print anscol B = map(int,input().split()) map(int,input().split()) B anscol += str(e) str(e) anscol a = grid[col] grid[col] a H,W,A,B = map(int,input().split()) map(int,input().split()) H A,B = map(int,input().split()) map(int,input().split()) A W,A,B = map(int,input().split()) map(int,input().split()) W grid = [[1]*W for i in range(H)] [[1]*W for i in range(H)] grid anscol = '' '' anscol
H,W,A,B = map(int,input().split())
grid = [[1]*W for i in range(H)]
for i in range(B):
    for j in range(A):
        grid[i][j] = 0
for i in range(B,H):
    for j in range(A,W):
        grid[i][j] = 0
#print(grid)
for col in range(H):
    a = grid[col]
    anscol = ''
    for e in a:
        anscol += str(e)
    print(anscol)
