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

    g = [[0] * W for _ in range(H)]
    for r in range(H):
        for c in range(W):
            g[r][c] = int((c < A) ^ (r >= B))

    for row in g:
        print(*row, sep='')


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

    g = [[0] * W for _ in range(H)]
    for r in range(H):
        for c in range(W):
            g[r][c] = int((c < A) ^ (r >= B))

    for row in g:
        print(*row, sep='') 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] * 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 r in range(H):
        for c in range(W):
            g[r][c] = int((c < A) ^ (r >= B))

     r range(H) range H for c in range(W):
            g[r][c] = int((c < A) ^ (r >= B))

     c range(W) range W g[r][c] = int((c < A) ^ (r >= B)) g[r][c] [r] g r c int((c < A) ^ (r >= B)) int (c < A) ^ (r >= B) c < A c A r >= B r B for row in g:
        print(*row, sep='') row g print(*row, sep='') print *row row sep='' sep '' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    H, W, A, B = map(int, input().split())

    g = [[0] * W for _ in range(H)]
    for r in range(H):
        for c in range(W):
            g[r][c] = int((c < A) ^ (r >= B))

    for row in g:
        print(*row, sep='') def main():
    H, W, A, B = map(int, input().split())

    g = [[0] * W for _ in range(H)]
    for r in range(H):
        for c in range(W):
            g[r][c] = int((c < A) ^ (r >= B))

    for row in g:
        print(*row, sep='') main
def main():
    H, W, A, B = map(int, input().split())

    g = [[0] * W for _ in range(H)]
    for r in range(H):
        for c in range(W):
            g[r][c] = int((c < A) ^ (r >= B))

    for row in g:
        print(*row, sep='')


if __name__ == '__main__':
    main()
