import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline

in_n = lambda: int(readline())
in_nn = lambda: map(int, readline().split())
in_nl = lambda: list(map(int, readline().split()))
in_na = lambda: map(int, read().split())
in_s = lambda: readline().rstrip().decode('utf-8')


def main():
    H, W, A, B = in_nn()

    ans = [[0 for _ in range(W)] for _ in range(H)]
    for y in range(H):
        for x in range(W):
            if 0 <= x < A and 0 <= y < B:
                ans[y][x] = 0
            elif A <= x < W and B <= y < H:
                ans[y][x] = 0
            else:
                ans[y][x] = 1

    for i in range(H):
        print(''.join(map(str, ans[i])))


if __name__ == '__main__':
    main() import sys sys read = sys.stdin.buffer.read read sys.stdin.buffer.read sys.stdin.buffer sys.stdin sys stdin buffer read readline = sys.stdin.buffer.readline readline sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline in_n = lambda: int(readline()) in_n lambda: int(readline()) int(readline()) int readline() readline in_nn = lambda: map(int, readline().split()) in_nn lambda: map(int, readline().split()) map(int, readline().split()) map int readline().split() ().split () readline split in_nl = lambda: list(map(int, readline().split())) in_nl lambda: list(map(int, readline().split())) list(map(int, readline().split())) list map(int, readline().split()) map int readline().split() ().split () readline split in_na = lambda: map(int, read().split()) in_na lambda: map(int, read().split()) map(int, read().split()) map int read().split() ().split () read split in_s = lambda: readline().rstrip().decode('utf-8') in_s lambda: readline().rstrip().decode('utf-8') readline().rstrip().decode('utf-8') ().rstrip().decode ().rstrip() ().rstrip () readline rstrip decode 'utf-8' def main():
    H, W, A, B = in_nn()

    ans = [[0 for _ in range(W)] for _ in range(H)]
    for y in range(H):
        for x in range(W):
            if 0 <= x < A and 0 <= y < B:
                ans[y][x] = 0
            elif A <= x < W and B <= y < H:
                ans[y][x] = 0
            else:
                ans[y][x] = 1

    for i in range(H):
        print(''.join(map(str, ans[i]))) main H, W, A, B = in_nn() H in_nn() in_nn 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)] ans = [[0 for _ in range(W)] for _ in range(H)] ans [[0 for _ in range(W)] for _ in range(H)] for y in range(H):
        for x in range(W):
            if 0 <= x < A and 0 <= y < B:
                ans[y][x] = 0
            elif A <= x < W and B <= y < H:
                ans[y][x] = 0
            else:
                ans[y][x] = 1

     y range(H) range H for x in range(W):
            if 0 <= x < A and 0 <= y < B:
                ans[y][x] = 0
            elif A <= x < W and B <= y < H:
                ans[y][x] = 0
            else:
                ans[y][x] = 1

     x range(W) range W if 0 <= x < A and 0 <= y < B:
                ans[y][x] = 0
            elif A <= x < W and B <= y < H:
                ans[y][x] = 0
            else:
                ans[y][x] = 1

     0 <= x < A and 0 <= y < B 0 <= x < A 0 <= x 0 x A 0 <= y < B 0 <= y 0 y B ans[y][x] = 0 ans[y][x] [y] ans y x 0 elif A <= x < W and B <= y < H:
                ans[y][x] = 0
             A <= x < W and B <= y < H A <= x < W A <= x A x W B <= y < H B <= y B y H ans[y][x] = 0 ans[y][x] [y] ans y x 0 ans[y][x] = 1 ans[y][x] [y] ans y x 1 for i in range(H):
        print(''.join(map(str, ans[i]))) i range(H) range H print(''.join(map(str, ans[i]))) print ''.join(map(str, ans[i])) ''.join '' join map(str, ans[i]) map str ans[i] ans i if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main in_n = lambda: int(readline()) lambda: int(readline()) in_n readline = sys.stdin.buffer.readline sys.stdin.buffer.readline readline in_nl = lambda: list(map(int, readline().split())) lambda: list(map(int, readline().split())) in_nl read = sys.stdin.buffer.read sys.stdin.buffer.read read def main():
    H, W, A, B = in_nn()

    ans = [[0 for _ in range(W)] for _ in range(H)]
    for y in range(H):
        for x in range(W):
            if 0 <= x < A and 0 <= y < B:
                ans[y][x] = 0
            elif A <= x < W and B <= y < H:
                ans[y][x] = 0
            else:
                ans[y][x] = 1

    for i in range(H):
        print(''.join(map(str, ans[i]))) def main():
    H, W, A, B = in_nn()

    ans = [[0 for _ in range(W)] for _ in range(H)]
    for y in range(H):
        for x in range(W):
            if 0 <= x < A and 0 <= y < B:
                ans[y][x] = 0
            elif A <= x < W and B <= y < H:
                ans[y][x] = 0
            else:
                ans[y][x] = 1

    for i in range(H):
        print(''.join(map(str, ans[i]))) main in_nn = lambda: map(int, readline().split()) lambda: map(int, readline().split()) in_nn in_s = lambda: readline().rstrip().decode('utf-8') lambda: readline().rstrip().decode('utf-8') in_s in_na = lambda: map(int, read().split()) lambda: map(int, read().split()) in_na
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline

in_n = lambda: int(readline())
in_nn = lambda: map(int, readline().split())
in_nl = lambda: list(map(int, readline().split()))
in_na = lambda: map(int, read().split())
in_s = lambda: readline().rstrip().decode('utf-8')


def main():
    H, W, A, B = in_nn()

    ans = [[0 for _ in range(W)] for _ in range(H)]
    for y in range(H):
        for x in range(W):
            if 0 <= x < A and 0 <= y < B:
                ans[y][x] = 0
            elif A <= x < W and B <= y < H:
                ans[y][x] = 0
            else:
                ans[y][x] = 1

    for i in range(H):
        print(''.join(map(str, ans[i])))


if __name__ == '__main__':
    main()
