H, W, A, B  = map(int, input().split())
graph = [[0]*W for _ in range(H)]
for i in range(B):
    for j in range(A, W):
        graph[i][j] = 1
for i in range(B, H):
    for j in range(A):
        graph[i][j] = 1
for line in graph:
    print("".join(map(str, line))) H, W, A, B  = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B [0]*W for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) [0]*W [0] 0 W graph = [[0]*W for _ in range(H)] graph [[0]*W for _ in range(H)] for i in range(B):
    for j in range(A, W):
        graph[i][j] = 1 i range(B) range B for j in range(A, W):
        graph[i][j] = 1 j range(A, W) range A W graph[i][j] = 1 graph[i][j] [i] graph i j 1 for i in range(B, H):
    for j in range(A):
        graph[i][j] = 1 i range(B, H) range B H for j in range(A):
        graph[i][j] = 1 j range(A) range A graph[i][j] = 1 graph[i][j] [i] graph i j 1 for line in graph:
    print("".join(map(str, line))) line graph print("".join(map(str, line))) print "".join(map(str, line)) "".join "" join map(str, line) map str line A, B  = map(int, input().split()) map(int, input().split()) A H, W, A, B  = map(int, input().split()) map(int, input().split()) H B  = map(int, input().split()) map(int, input().split()) B graph = [[0]*W for _ in range(H)] [[0]*W for _ in range(H)] graph W, A, B  = map(int, input().split()) map(int, input().split()) W
H, W, A, B  = map(int, input().split())
graph = [[0]*W for _ in range(H)]
for i in range(B):
    for j in range(A, W):
        graph[i][j] = 1
for i in range(B, H):
    for j in range(A):
        graph[i][j] = 1
for line in graph:
    print("".join(map(str, line)))
