import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

H, W, A, B = lr()
list1 = '0' * (W-A) + '1' * A
for i in range(H-B):
    print(list1)

list2 = '1' * (W-A) + '0' * A
for i in range(B):
    print(list2)

# 40 import sys sys sr = lambda: sys.stdin.readline().rstrip() sr lambda: sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip ir = lambda: int(sr()) ir lambda: int(sr()) int(sr()) int sr() sr lr = lambda: list(map(int, sr().split())) lr lambda: list(map(int, sr().split())) list(map(int, sr().split())) list map(int, sr().split()) map int sr().split() ().split () sr split H, W, A, B = lr() H lr() lr W A B list1 = '0' * (W-A) + '1' * A list1 '0' * (W-A) + '1' * A '0' * (W-A) '0' W-A W A '1' * A '1' A for i in range(H-B):
    print(list1) i range(H-B) range H-B H B print(list1) print list1 list2 = '1' * (W-A) + '0' * A list2 '1' * (W-A) + '0' * A '1' * (W-A) '1' W-A W A '0' * A '0' A for i in range(B):
    print(list2)

# 40 i range(B) range B print(list2) print list2 A, B = lr() lr() A B = lr() lr() B H, W, A, B = lr() lr() H list2 = '1' * (W-A) + '0' * A '1' * (W-A) + '0' * A list2 lr = lambda: list(map(int, sr().split())) lambda: list(map(int, sr().split())) lr W, A, B = lr() lr() W list1 = '0' * (W-A) + '1' * A '0' * (W-A) + '1' * A list1 ir = lambda: int(sr()) lambda: int(sr()) ir sr = lambda: sys.stdin.readline().rstrip() lambda: sys.stdin.readline().rstrip() sr
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

H, W, A, B = lr()
list1 = '0' * (W-A) + '1' * A
for i in range(H-B):
    print(list1)

list2 = '1' * (W-A) + '0' * A
for i in range(B):
    print(list2)

# 40