import sys
input = sys.stdin.readline

def main():
    H, W, A, B = [int(x) for x in input().split()]

    ans = [[0] * W for j in range(H)]


    for j in range(H):
        if B > 0:
            for i in range(A):
                ans[j][i] = 1
            B -= 1
        else:
            for i in range(A, W):
                ans[j][i] = 1



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




    

if __name__ == '__main__':
    main()
 import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline def main():
    H, W, A, B = [int(x) for x in input().split()]

    ans = [[0] * W for j in range(H)]


    for j in range(H):
        if B > 0:
            for i in range(A):
                ans[j][i] = 1
            B -= 1
        else:
            for i in range(A, W):
                ans[j][i] = 1



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




     main int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x H, W, A, B = [int(x) for x in input().split()] H [int(x) for x in input().split()] W A B [0] * W for j in range(H) for j in range(H) j range(H) range H for j in range(H) [0] * W [0] 0 W ans = [[0] * W for j in range(H)] ans [[0] * W for j in range(H)] for j in range(H):
        if B > 0:
            for i in range(A):
                ans[j][i] = 1
            B -= 1
        else:
            for i in range(A, W):
                ans[j][i] = 1



     j range(H) range H if B > 0:
            for i in range(A):
                ans[j][i] = 1
            B -= 1
        else:
            for i in range(A, W):
                ans[j][i] = 1



     B > 0 B 0 for i in range(A):
                ans[j][i] = 1
             i range(A) range A ans[j][i] = 1 ans[j][i] [j] ans j i 1 B -= 1 B 1 for i in range(A, W):
                ans[j][i] = 1



     i range(A, W) range A W ans[j][i] = 1 ans[j][i] [j] ans j i 1 for j in range(H):
        print("".join(map(str, ans[j])))




     j range(H) range H print("".join(map(str, ans[j]))) print "".join(map(str, ans[j])) "".join "" join map(str, ans[j]) map str ans[j] ans j if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    H, W, A, B = [int(x) for x in input().split()]

    ans = [[0] * W for j in range(H)]


    for j in range(H):
        if B > 0:
            for i in range(A):
                ans[j][i] = 1
            B -= 1
        else:
            for i in range(A, W):
                ans[j][i] = 1



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




     def main():
    H, W, A, B = [int(x) for x in input().split()]

    ans = [[0] * W for j in range(H)]


    for j in range(H):
        if B > 0:
            for i in range(A):
                ans[j][i] = 1
            B -= 1
        else:
            for i in range(A, W):
                ans[j][i] = 1



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




     main input = sys.stdin.readline sys.stdin.readline input
import sys
input = sys.stdin.readline

def main():
    H, W, A, B = [int(x) for x in input().split()]

    ans = [[0] * W for j in range(H)]


    for j in range(H):
        if B > 0:
            for i in range(A):
                ans[j][i] = 1
            B -= 1
        else:
            for i in range(A, W):
                ans[j][i] = 1



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




    

if __name__ == '__main__':
    main()

