import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

h, w, a, b = map(int, read().split())
for i in range(b):
    print('1' * (w - a) + '0' * a)
for i in range(h - b):
    print('0' * (w - a) + '1' * a) import sys sys read = sys.stdin.buffer.read read sys.stdin.buffer.read sys.stdin.buffer sys.stdin sys stdin buffer read readline = sys.stdin.buffer.readline readline sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline readlines = sys.stdin.buffer.readlines readlines sys.stdin.buffer.readlines sys.stdin.buffer sys.stdin sys stdin buffer readlines sys.setrecursionlimit(10 ** 7) sys.setrecursionlimit sys setrecursionlimit 10 ** 7 10 7 h, w, a, b = map(int, read().split()) h map(int, read().split()) map int read().split() ().split () read split w a b for i in range(b):
    print('1' * (w - a) + '0' * a) i range(b) range b print('1' * (w - a) + '0' * a) print '1' * (w - a) + '0' * a '1' * (w - a) '1' w - a w a '0' * a '0' a for i in range(h - b):
    print('0' * (w - a) + '1' * a) i range(h - b) range h - b h b print('0' * (w - a) + '1' * a) print '0' * (w - a) + '1' * a '0' * (w - a) '0' w - a w a '1' * a '1' a b = map(int, read().split()) map(int, read().split()) b readlines = sys.stdin.buffer.readlines sys.stdin.buffer.readlines readlines h, w, a, b = map(int, read().split()) map(int, read().split()) h read = sys.stdin.buffer.read sys.stdin.buffer.read read a, b = map(int, read().split()) map(int, read().split()) a w, a, b = map(int, read().split()) map(int, read().split()) w readline = sys.stdin.buffer.readline sys.stdin.buffer.readline readline
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

h, w, a, b = map(int, read().split())
for i in range(b):
    print('1' * (w - a) + '0' * a)
for i in range(h - b):
    print('0' * (w - a) + '1' * a)
