
def resolve():
    H, W, A, B = map(int, input().split())
    G = [[0] * W for _ in range(H)]

    for i in range(B):
        for j in range(A):
            G[i][j] = 1

    for i in range(B, H):
        for j in range(A, W):
            G[i][j] = 1

    for g in G:
        print(*g, sep="")


if __name__ == "__main__":
    resolve() def resolve():
    H, W, A, B = map(int, input().split())
    G = [[0] * W for _ in range(H)]

    for i in range(B):
        for j in range(A):
            G[i][j] = 1

    for i in range(B, H):
        for j in range(A, W):
            G[i][j] = 1

    for g in G:
        print(*g, sep="") resolve 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 G = [[0] * W for _ in range(H)] G [[0] * W for _ in range(H)] for i in range(B):
        for j in range(A):
            G[i][j] = 1

     i range(B) range B for j in range(A):
            G[i][j] = 1

     j range(A) range A G[i][j] = 1 G[i][j] [i] G i j 1 for i in range(B, H):
        for j in range(A, W):
            G[i][j] = 1

     i range(B, H) range B H for j in range(A, W):
            G[i][j] = 1

     j range(A, W) range A W G[i][j] = 1 G[i][j] [i] G i j 1 for g in G:
        print(*g, sep="") g G print(*g, sep="") print *g g sep="" sep "" if __name__ == "__main__":
    resolve() __name__ == "__main__" __name__ "__main__" resolve() resolve def resolve():
    H, W, A, B = map(int, input().split())
    G = [[0] * W for _ in range(H)]

    for i in range(B):
        for j in range(A):
            G[i][j] = 1

    for i in range(B, H):
        for j in range(A, W):
            G[i][j] = 1

    for g in G:
        print(*g, sep="") def resolve():
    H, W, A, B = map(int, input().split())
    G = [[0] * W for _ in range(H)]

    for i in range(B):
        for j in range(A):
            G[i][j] = 1

    for i in range(B, H):
        for j in range(A, W):
            G[i][j] = 1

    for g in G:
        print(*g, sep="") resolve

def resolve():
    H, W, A, B = map(int, input().split())
    G = [[0] * W for _ in range(H)]

    for i in range(B):
        for j in range(A):
            G[i][j] = 1

    for i in range(B, H):
        for j in range(A, W):
            G[i][j] = 1

    for g in G:
        print(*g, sep="")


if __name__ == "__main__":
    resolve()