import sys
import math  # noqa
import bisect  # noqa
import queue  # noqa


def input():
    return sys.stdin.readline().rstrip()


def main():
    H, W, A, B = map(int, input().split())

    res = []
    for _ in range(B):
        row = [0 for _ in range(W)]
        for i in range(A, W):
            row[i] = 1
        res.append(row)

    for _ in range(H - B):
        row = [0 for _ in range(W)]
        for i in range(A):
            row[i] = 1
        res.append(row)

    for re in res:
        re = [str(r) for r in re]
        print(''.join(re))


if __name__ == '__main__':
    main() import sys sys import math math import bisect bisect import queue queue def input():
    return sys.stdin.readline().rstrip() input return sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip def main():
    H, W, A, B = map(int, input().split())

    res = []
    for _ in range(B):
        row = [0 for _ in range(W)]
        for i in range(A, W):
            row[i] = 1
        res.append(row)

    for _ in range(H - B):
        row = [0 for _ in range(W)]
        for i in range(A):
            row[i] = 1
        res.append(row)

    for re in res:
        re = [str(r) for r in re]
        print(''.join(re)) main H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B res = [] res [] for _ in range(B):
        row = [0 for _ in range(W)]
        for i in range(A, W):
            row[i] = 1
        res.append(row)

     _ range(B) range B 0 for _ in range(W) for _ in range(W) _ range(W) range W for _ in range(W) 0 row = [0 for _ in range(W)] row [0 for _ in range(W)] for i in range(A, W):
            row[i] = 1
         i range(A, W) range A W row[i] = 1 row[i] row i 1 res.append(row) res.append res append row for _ in range(H - B):
        row = [0 for _ in range(W)]
        for i in range(A):
            row[i] = 1
        res.append(row)

     _ range(H - B) range H - B H B 0 for _ in range(W) for _ in range(W) _ range(W) range W for _ in range(W) 0 row = [0 for _ in range(W)] row [0 for _ in range(W)] for i in range(A):
            row[i] = 1
         i range(A) range A row[i] = 1 row[i] row i 1 res.append(row) res.append res append row for re in res:
        re = [str(r) for r in re]
        print(''.join(re)) re res str(r) for r in re for r in re r re for r in re str(r) str r re = [str(r) for r in re] re [str(r) for r in re] print(''.join(re)) print ''.join(re) ''.join '' join re if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def input():
    return sys.stdin.readline().rstrip() def input():
    return sys.stdin.readline().rstrip() input def main():
    H, W, A, B = map(int, input().split())

    res = []
    for _ in range(B):
        row = [0 for _ in range(W)]
        for i in range(A, W):
            row[i] = 1
        res.append(row)

    for _ in range(H - B):
        row = [0 for _ in range(W)]
        for i in range(A):
            row[i] = 1
        res.append(row)

    for re in res:
        re = [str(r) for r in re]
        print(''.join(re)) def main():
    H, W, A, B = map(int, input().split())

    res = []
    for _ in range(B):
        row = [0 for _ in range(W)]
        for i in range(A, W):
            row[i] = 1
        res.append(row)

    for _ in range(H - B):
        row = [0 for _ in range(W)]
        for i in range(A):
            row[i] = 1
        res.append(row)

    for re in res:
        re = [str(r) for r in re]
        print(''.join(re)) main
import sys
import math  # noqa
import bisect  # noqa
import queue  # noqa


def input():
    return sys.stdin.readline().rstrip()


def main():
    H, W, A, B = map(int, input().split())

    res = []
    for _ in range(B):
        row = [0 for _ in range(W)]
        for i in range(A, W):
            row[i] = 1
        res.append(row)

    for _ in range(H - B):
        row = [0 for _ in range(W)]
        for i in range(A):
            row[i] = 1
        res.append(row)

    for re in res:
        re = [str(r) for r in re]
        print(''.join(re))


if __name__ == '__main__':
    main()
