import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline

sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


def main():
    H, W, A, B = map(int, readline().split())
    L = [[0]*W for _ in range(H)]
    for h in range(B):
        for w in range(A,W):
            L[h][w] = 1
    for h in range(B,H):
        for w in range(A):
            L[h][w] = 1
    for l in L:
        print(''.join(map(str,l)))
    


if __name__ == '__main__':
    main() import sys sys read = sys.stdin.read read sys.stdin.read sys.stdin sys stdin read readline = sys.stdin.buffer.readline readline sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline sys.setrecursionlimit(10 ** 8) sys.setrecursionlimit sys setrecursionlimit 10 ** 8 10 8 INF = float('inf') INF float('inf') float 'inf' MOD = 10 ** 9 + 7 MOD 10 ** 9 + 7 10 ** 9 10 9 7 def main():
    H, W, A, B = map(int, readline().split())
    L = [[0]*W for _ in range(H)]
    for h in range(B):
        for w in range(A,W):
            L[h][w] = 1
    for h in range(B,H):
        for w in range(A):
            L[h][w] = 1
    for l in L:
        print(''.join(map(str,l)))
     main H, W, A, B = map(int, readline().split()) H map(int, readline().split()) map int readline().split() ().split () readline 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 L = [[0]*W for _ in range(H)] L [[0]*W for _ in range(H)] for h in range(B):
        for w in range(A,W):
            L[h][w] = 1
     h range(B) range B for w in range(A,W):
            L[h][w] = 1
     w range(A,W) range A W L[h][w] = 1 L[h][w] [h] L h w 1 for h in range(B,H):
        for w in range(A):
            L[h][w] = 1
     h range(B,H) range B H for w in range(A):
            L[h][w] = 1
     w range(A) range A L[h][w] = 1 L[h][w] [h] L h w 1 for l in L:
        print(''.join(map(str,l)))
     l L print(''.join(map(str,l))) print ''.join(map(str,l)) ''.join '' join map(str,l) map str l if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main MOD = 10 ** 9 + 7 10 ** 9 + 7 MOD read = sys.stdin.read sys.stdin.read read INF = float('inf') float('inf') INF def main():
    H, W, A, B = map(int, readline().split())
    L = [[0]*W for _ in range(H)]
    for h in range(B):
        for w in range(A,W):
            L[h][w] = 1
    for h in range(B,H):
        for w in range(A):
            L[h][w] = 1
    for l in L:
        print(''.join(map(str,l)))
     def main():
    H, W, A, B = map(int, readline().split())
    L = [[0]*W for _ in range(H)]
    for h in range(B):
        for w in range(A,W):
            L[h][w] = 1
    for h in range(B,H):
        for w in range(A):
            L[h][w] = 1
    for l in L:
        print(''.join(map(str,l)))
     main readline = sys.stdin.buffer.readline sys.stdin.buffer.readline readline
import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline

sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


def main():
    H, W, A, B = map(int, readline().split())
    L = [[0]*W for _ in range(H)]
    for h in range(B):
        for w in range(A,W):
            L[h][w] = 1
    for h in range(B,H):
        for w in range(A):
            L[h][w] = 1
    for l in L:
        print(''.join(map(str,l)))
    


if __name__ == '__main__':
    main()
