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

    lines = [[0 for _ in range(W)] for _ in range(H)]

    for y in range(H):
        for x in range(W):
            if x < A and y < B:
                lines[y][x] = 1
            if x >= A and y >= B:
                lines[y][x] = 1

    for line in lines:
        print("".join(map(str, line)))

if __name__ == '__main__':
    main() def main():
    H, W, A, B = map(int, input().split())

    lines = [[0 for _ in range(W)] for _ in range(H)]

    for y in range(H):
        for x in range(W):
            if x < A and y < B:
                lines[y][x] = 1
            if x >= A and y >= B:
                lines[y][x] = 1

    for line in lines:
        print("".join(map(str, line))) main H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B [0 for _ in range(W)] for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) [0 for _ in range(W)] lines = [[0 for _ in range(W)] for _ in range(H)] lines [[0 for _ in range(W)] for _ in range(H)] for y in range(H):
        for x in range(W):
            if x < A and y < B:
                lines[y][x] = 1
            if x >= A and y >= B:
                lines[y][x] = 1

     y range(H) range H for x in range(W):
            if x < A and y < B:
                lines[y][x] = 1
            if x >= A and y >= B:
                lines[y][x] = 1

     x range(W) range W if x < A and y < B:
                lines[y][x] = 1
             x < A and y < B x < A x A y < B y B lines[y][x] = 1 lines[y][x] [y] lines y x 1 if x >= A and y >= B:
                lines[y][x] = 1

     x >= A and y >= B x >= A x A y >= B y B lines[y][x] = 1 lines[y][x] [y] lines y x 1 for line in lines:
        print("".join(map(str, line))) line lines print("".join(map(str, line))) print "".join(map(str, line)) "".join "" join map(str, line) map str line if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    H, W, A, B = map(int, input().split())

    lines = [[0 for _ in range(W)] for _ in range(H)]

    for y in range(H):
        for x in range(W):
            if x < A and y < B:
                lines[y][x] = 1
            if x >= A and y >= B:
                lines[y][x] = 1

    for line in lines:
        print("".join(map(str, line))) def main():
    H, W, A, B = map(int, input().split())

    lines = [[0 for _ in range(W)] for _ in range(H)]

    for y in range(H):
        for x in range(W):
            if x < A and y < B:
                lines[y][x] = 1
            if x >= A and y >= B:
                lines[y][x] = 1

    for line in lines:
        print("".join(map(str, line))) main
def main():
    H, W, A, B = map(int, input().split())

    lines = [[0 for _ in range(W)] for _ in range(H)]

    for y in range(H):
        for x in range(W):
            if x < A and y < B:
                lines[y][x] = 1
            if x >= A and y >= B:
                lines[y][x] = 1

    for line in lines:
        print("".join(map(str, line)))

if __name__ == '__main__':
    main()
