import sys
import numpy as np
def input(): return sys.stdin.readline().rstrip()
def ii(): return int(input())
def mi(): return map(int, input().split())
def li(): return list(mi())


def main():
    h, w, a, b = mi()
    g = np.zeros((h, w), dtype=int)
    g[:b, :a] = 1
    g[b:, a:] = 1
    for i in range(h):
        print(*g[i], sep='')


if __name__ == '__main__':
    main() import sys sys import numpy as np numpy def input(): return sys.stdin.readline().rstrip() input def ii(): return int(input()) ii def mi(): return map(int, input().split()) mi def li(): return list(mi()) li def main():
    h, w, a, b = mi()
    g = np.zeros((h, w), dtype=int)
    g[:b, :a] = 1
    g[b:, a:] = 1
    for i in range(h):
        print(*g[i], sep='') main h, w, a, b = mi() h mi() mi w a b g = np.zeros((h, w), dtype=int) g np.zeros((h, w), dtype=int) np.zeros np zeros (h, w) h w dtype=int dtype int g[:b, :a] = 1 g[:b, :a] g :b b 1 g[b:, a:] = 1 g[b:, a:] g b: b 1 for i in range(h):
        print(*g[i], sep='') i range(h) range h print(*g[i], sep='') print *g[i] g[i] g i sep='' sep '' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    h, w, a, b = mi()
    g = np.zeros((h, w), dtype=int)
    g[:b, :a] = 1
    g[b:, a:] = 1
    for i in range(h):
        print(*g[i], sep='') def main():
    h, w, a, b = mi()
    g = np.zeros((h, w), dtype=int)
    g[:b, :a] = 1
    g[b:, a:] = 1
    for i in range(h):
        print(*g[i], sep='') main def ii(): return int(input()) def ii(): return int(input()) ii def li(): return list(mi()) def li(): return list(mi()) li def input(): return sys.stdin.readline().rstrip() def input(): return sys.stdin.readline().rstrip() input def mi(): return map(int, input().split()) def mi(): return map(int, input().split()) mi
import sys
import numpy as np
def input(): return sys.stdin.readline().rstrip()
def ii(): return int(input())
def mi(): return map(int, input().split())
def li(): return list(mi())


def main():
    h, w, a, b = mi()
    g = np.zeros((h, w), dtype=int)
    g[:b, :a] = 1
    g[b:, a:] = 1
    for i in range(h):
        print(*g[i], sep='')


if __name__ == '__main__':
    main()