import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    H, W, A, B = map(int, rl().split())
    s = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(A, W):
            s[i][j] = 1
    for i in range(B, H):
        for j in range(A):
            s[i][j] = 1
    for si in s:
        print(''.join(map(str, si)))


if __name__ == '__main__':
    solve() import sys sys sys.setrecursionlimit(10 ** 7) sys.setrecursionlimit sys setrecursionlimit 10 ** 7 10 7 rl = sys.stdin.readline rl sys.stdin.readline sys.stdin sys stdin readline def solve():
    H, W, A, B = map(int, rl().split())
    s = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(A, W):
            s[i][j] = 1
    for i in range(B, H):
        for j in range(A):
            s[i][j] = 1
    for si in s:
        print(''.join(map(str, si))) solve H, W, A, B = map(int, rl().split()) H map(int, rl().split()) map int rl().split() ().split () rl 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(A, W):
            s[i][j] = 1
     i range(B) range B for j in range(A, W):
            s[i][j] = 1
     j range(A, W) range A W s[i][j] = 1 s[i][j] [i] s i j 1 for i in range(B, H):
        for j in range(A):
            s[i][j] = 1
     i range(B, H) range B H for j in range(A):
            s[i][j] = 1
     j range(A) range A s[i][j] = 1 s[i][j] [i] s i j 1 for si in s:
        print(''.join(map(str, si))) si s print(''.join(map(str, si))) print ''.join(map(str, si)) ''.join '' join map(str, si) map str si if __name__ == '__main__':
    solve() __name__ == '__main__' __name__ '__main__' solve() solve def solve():
    H, W, A, B = map(int, rl().split())
    s = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(A, W):
            s[i][j] = 1
    for i in range(B, H):
        for j in range(A):
            s[i][j] = 1
    for si in s:
        print(''.join(map(str, si))) def solve():
    H, W, A, B = map(int, rl().split())
    s = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(A, W):
            s[i][j] = 1
    for i in range(B, H):
        for j in range(A):
            s[i][j] = 1
    for si in s:
        print(''.join(map(str, si))) solve rl = sys.stdin.readline sys.stdin.readline rl
import sys

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    H, W, A, B = map(int, rl().split())
    s = [[0] * W for _ in range(H)]
    for i in range(B):
        for j in range(A, W):
            s[i][j] = 1
    for i in range(B, H):
        for j in range(A):
            s[i][j] = 1
    for si in s:
        print(''.join(map(str, si)))


if __name__ == '__main__':
    solve()
