import sys
input = sys.stdin.readline
from operator import itemgetter
sys.setrecursionlimit(10000000)
INF = 10**30

def main():
    h, w, wa, hb = list(map(int, input().strip().split()))
    for i in range(h):
        if i < hb:
            print('0' * wa + '1' * (w-wa))
        else:
            print('1' * wa + '0' * (w-wa))


if __name__ == '__main__':
    main() import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline from operator import itemgetter sys.setrecursionlimit(10000000) sys.setrecursionlimit sys setrecursionlimit 10000000 INF = 10**30 INF 10**30 10 30 def main():
    h, w, wa, hb = list(map(int, input().strip().split()))
    for i in range(h):
        if i < hb:
            print('0' * wa + '1' * (w-wa))
        else:
            print('1' * wa + '0' * (w-wa)) main h, w, wa, hb = list(map(int, input().strip().split())) h list(map(int, input().strip().split())) list map(int, input().strip().split()) map int input().strip().split() ().strip().split ().strip() ().strip () input strip split w wa hb for i in range(h):
        if i < hb:
            print('0' * wa + '1' * (w-wa))
        else:
            print('1' * wa + '0' * (w-wa)) i range(h) range h if i < hb:
            print('0' * wa + '1' * (w-wa))
        else:
            print('1' * wa + '0' * (w-wa)) i < hb i hb print('0' * wa + '1' * (w-wa)) print '0' * wa + '1' * (w-wa) '0' * wa '0' wa '1' * (w-wa) '1' w-wa w wa print('1' * wa + '0' * (w-wa)) print '1' * wa + '0' * (w-wa) '1' * wa '1' wa '0' * (w-wa) '0' w-wa w wa if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    h, w, wa, hb = list(map(int, input().strip().split()))
    for i in range(h):
        if i < hb:
            print('0' * wa + '1' * (w-wa))
        else:
            print('1' * wa + '0' * (w-wa)) def main():
    h, w, wa, hb = list(map(int, input().strip().split()))
    for i in range(h):
        if i < hb:
            print('0' * wa + '1' * (w-wa))
        else:
            print('1' * wa + '0' * (w-wa)) main INF = 10**30 10**30 INF input = sys.stdin.readline sys.stdin.readline input
import sys
input = sys.stdin.readline
from operator import itemgetter
sys.setrecursionlimit(10000000)
INF = 10**30

def main():
    h, w, wa, hb = list(map(int, input().strip().split()))
    for i in range(h):
        if i < hb:
            print('0' * wa + '1' * (w-wa))
        else:
            print('1' * wa + '0' * (w-wa))


if __name__ == '__main__':
    main()
