def main():
    H, W, A, B = map(int, input().split())
    S = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(W):
            if j >= A:
                S[i][j] = 1

    for i in range(A):
        for j in range(H):
            if j >= B:
                S[j][i] = 1

    for i in range(H):
        print(*S[i], sep='')




if __name__ == "__main__":
    main() def main():
    H, W, A, B = map(int, input().split())
    S = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(W):
            if j >= A:
                S[i][j] = 1

    for i in range(A):
        for j in range(H):
            if j >= B:
                S[j][i] = 1

    for i in range(H):
        print(*S[i], 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 S = [[0] * W for _ in range(H)] S [[0] * W for _ in range(H)] for i in range(B):
        for j in range(W):
            if j >= A:
                S[i][j] = 1

     i range(B) range B for j in range(W):
            if j >= A:
                S[i][j] = 1

     j range(W) range W if j >= A:
                S[i][j] = 1

     j >= A j A S[i][j] = 1 S[i][j] [i] S i j 1 for i in range(A):
        for j in range(H):
            if j >= B:
                S[j][i] = 1

     i range(A) range A for j in range(H):
            if j >= B:
                S[j][i] = 1

     j range(H) range H if j >= B:
                S[j][i] = 1

     j >= B j B S[j][i] = 1 S[j][i] [j] S j i 1 for i in range(H):
        print(*S[i], sep='') i range(H) range H print(*S[i], sep='') print *S[i] S[i] S i sep='' sep '' if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    H, W, A, B = map(int, input().split())
    S = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(W):
            if j >= A:
                S[i][j] = 1

    for i in range(A):
        for j in range(H):
            if j >= B:
                S[j][i] = 1

    for i in range(H):
        print(*S[i], sep='') def main():
    H, W, A, B = map(int, input().split())
    S = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(W):
            if j >= A:
                S[i][j] = 1

    for i in range(A):
        for j in range(H):
            if j >= B:
                S[j][i] = 1

    for i in range(H):
        print(*S[i], sep='') main
def main():
    H, W, A, B = map(int, input().split())
    S = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(W):
            if j >= A:
                S[i][j] = 1

    for i in range(A):
        for j in range(H):
            if j >= B:
                S[j][i] = 1

    for i in range(H):
        print(*S[i], sep='')




if __name__ == "__main__":
    main()