def main():
    height, width, w_min, h_min = map(int, input().split())
    answer = [["1" for _ in range(width)] for _ in range(height)]
    for i in range(height):
        for j in range(width):
            if (i < h_min and j < w_min) or (h_min <= i and w_min <= j):
                answer[i][j] = "0"
    for i in range(height):
        print("".join(answer[i]))


if __name__ == '__main__':
    main()
 def main():
    height, width, w_min, h_min = map(int, input().split())
    answer = [["1" for _ in range(width)] for _ in range(height)]
    for i in range(height):
        for j in range(width):
            if (i < h_min and j < w_min) or (h_min <= i and w_min <= j):
                answer[i][j] = "0"
    for i in range(height):
        print("".join(answer[i])) main height, width, w_min, h_min = map(int, input().split()) height map(int, input().split()) map int input().split() ().split () input split width w_min h_min ["1" for _ in range(width)] for _ in range(height) for _ in range(height) _ range(height) range height for _ in range(height) ["1" for _ in range(width)] answer = [["1" for _ in range(width)] for _ in range(height)] answer [["1" for _ in range(width)] for _ in range(height)] for i in range(height):
        for j in range(width):
            if (i < h_min and j < w_min) or (h_min <= i and w_min <= j):
                answer[i][j] = "0"
     i range(height) range height for j in range(width):
            if (i < h_min and j < w_min) or (h_min <= i and w_min <= j):
                answer[i][j] = "0"
     j range(width) range width if (i < h_min and j < w_min) or (h_min <= i and w_min <= j):
                answer[i][j] = "0"
     (i < h_min and j < w_min) or (h_min <= i and w_min <= j) i < h_min and j < w_min i < h_min i h_min j < w_min j w_min h_min <= i and w_min <= j h_min <= i h_min i w_min <= j w_min j answer[i][j] = "0" answer[i][j] [i] answer i j "0" for i in range(height):
        print("".join(answer[i])) i range(height) range height print("".join(answer[i])) print "".join(answer[i]) "".join "" join answer[i] answer i if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    height, width, w_min, h_min = map(int, input().split())
    answer = [["1" for _ in range(width)] for _ in range(height)]
    for i in range(height):
        for j in range(width):
            if (i < h_min and j < w_min) or (h_min <= i and w_min <= j):
                answer[i][j] = "0"
    for i in range(height):
        print("".join(answer[i])) def main():
    height, width, w_min, h_min = map(int, input().split())
    answer = [["1" for _ in range(width)] for _ in range(height)]
    for i in range(height):
        for j in range(width):
            if (i < h_min and j < w_min) or (h_min <= i and w_min <= j):
                answer[i][j] = "0"
    for i in range(height):
        print("".join(answer[i])) main
def main():
    height, width, w_min, h_min = map(int, input().split())
    answer = [["1" for _ in range(width)] for _ in range(height)]
    for i in range(height):
        for j in range(width):
            if (i < h_min and j < w_min) or (h_min <= i and w_min <= j):
                answer[i][j] = "0"
    for i in range(height):
        print("".join(answer[i]))


if __name__ == '__main__':
    main()

