
def Z(): return int(input())
def ZZ(): return [int(_) for _ in input().split()]

def main():
    H, W, A, B = ZZ()
    ans = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(A): ans[i][j] = 1
    for i in range(B, H):
        for j in range(A, W): ans[i][j] = 1
    for i in range(H): print(*ans[i], sep='')

    return

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

    return main H, W, A, B = ZZ() H ZZ() ZZ 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 ans = [[0] * W for _ in range(H)] ans [[0] * W for _ in range(H)] for i in range(B):
        for j in range(A): ans[i][j] = 1
     i range(B) range B for j in range(A): ans[i][j] = 1
     j range(A) range A for i in range(B, H):
        for j in range(A, W): ans[i][j] = 1
     i range(B, H) range B H for j in range(A, W): ans[i][j] = 1
     j range(A, W) range A W for i in range(H): print(*ans[i], sep='')

     i range(H) range H return if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def Z(): return int(input()) def Z(): return int(input()) Z def main():
    H, W, A, B = ZZ()
    ans = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(A): ans[i][j] = 1
    for i in range(B, H):
        for j in range(A, W): ans[i][j] = 1
    for i in range(H): print(*ans[i], sep='')

    return def main():
    H, W, A, B = ZZ()
    ans = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(A): ans[i][j] = 1
    for i in range(B, H):
        for j in range(A, W): ans[i][j] = 1
    for i in range(H): print(*ans[i], sep='')

    return main def ZZ(): return [int(_) for _ in input().split()] def ZZ(): return [int(_) for _ in input().split()] ZZ

def Z(): return int(input())
def ZZ(): return [int(_) for _ in input().split()]

def main():
    H, W, A, B = ZZ()
    ans = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(A): ans[i][j] = 1
    for i in range(B, H):
        for j in range(A, W): ans[i][j] = 1
    for i in range(H): print(*ans[i], sep='')

    return

if __name__ == '__main__':
    main()
