import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
H, W, B, A = map(int, input().split())
grid = [[0]*W for _ in range(H)]

for row in range(H):
    for col in range(W):
        if (row < A and col < B) or (row >= A and col >= B):
            grid[row][col] = 1
for l in grid:
    print("".join(map(str, l))) import sys sys sys.setrecursionlimit(10**9) sys.setrecursionlimit sys setrecursionlimit 10**9 10 9 input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline H, W, B, A = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W B A [0]*W for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) [0]*W [0] 0 W grid = [[0]*W for _ in range(H)] grid [[0]*W for _ in range(H)] for row in range(H):
    for col in range(W):
        if (row < A and col < B) or (row >= A and col >= B):
            grid[row][col] = 1 row range(H) range H for col in range(W):
        if (row < A and col < B) or (row >= A and col >= B):
            grid[row][col] = 1 col range(W) range W if (row < A and col < B) or (row >= A and col >= B):
            grid[row][col] = 1 (row < A and col < B) or (row >= A and col >= B) row < A and col < B row < A row A col < B col B row >= A and col >= B row >= A row A col >= B col B grid[row][col] = 1 grid[row][col] [row] grid row col 1 for l in grid:
    print("".join(map(str, l))) l grid print("".join(map(str, l))) print "".join(map(str, l)) "".join "" join map(str, l) map str l A = map(int, input().split()) map(int, input().split()) A input = sys.stdin.readline sys.stdin.readline input H, W, B, A = map(int, input().split()) map(int, input().split()) H W, B, A = map(int, input().split()) map(int, input().split()) W B, A = map(int, input().split()) map(int, input().split()) B grid = [[0]*W for _ in range(H)] [[0]*W for _ in range(H)] grid
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
H, W, B, A = map(int, input().split())
grid = [[0]*W for _ in range(H)]

for row in range(H):
    for col in range(W):
        if (row < A and col < B) or (row >= A and col >= B):
            grid[row][col] = 1
for l in grid:
    print("".join(map(str, l)))
