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, readline().split())
ans_1 = '1' * a + '0' * (w - a)
ans_2 = '0' * a + '1' * (w - a)
for i in range(b):
    print(ans_1)
for i in range(h - b):
    print(ans_2) 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, readline().split()) h map(int, readline().split()) map int readline().split() ().split () readline split w a b ans_1 = '1' * a + '0' * (w - a) ans_1 '1' * a + '0' * (w - a) '1' * a '1' a '0' * (w - a) '0' w - a w a ans_2 = '0' * a + '1' * (w - a) ans_2 '0' * a + '1' * (w - a) '0' * a '0' a '1' * (w - a) '1' w - a w a for i in range(b):
    print(ans_1) i range(b) range b print(ans_1) print ans_1 for i in range(h - b):
    print(ans_2) i range(h - b) range h - b h b print(ans_2) print ans_2 readline = sys.stdin.buffer.readline sys.stdin.buffer.readline readline readlines = sys.stdin.buffer.readlines sys.stdin.buffer.readlines readlines b = map(int, readline().split()) map(int, readline().split()) b ans_1 = '1' * a + '0' * (w - a) '1' * a + '0' * (w - a) ans_1 ans_2 = '0' * a + '1' * (w - a) '0' * a + '1' * (w - a) ans_2 read = sys.stdin.buffer.read sys.stdin.buffer.read read w, a, b = map(int, readline().split()) map(int, readline().split()) w a, b = map(int, readline().split()) map(int, readline().split()) a h, w, a, b = map(int, readline().split()) map(int, readline().split()) h
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, readline().split())
ans_1 = '1' * a + '0' * (w - a)
ans_2 = '0' * a + '1' * (w - a)
for i in range(b):
    print(ans_1)
for i in range(h - b):
    print(ans_2)
