import sys
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

h,w,a,b = na()
ans = []

for i in range(h):
    a = min(a,w-a)
    k = '0'*a + '1'*(w-a) if i < b else '1'*a+'0'*(w-a)
    ans.append(k)

print(*ans, sep='\n') import sys sys stdin = sys.stdin stdin sys.stdin sys stdin ni = lambda: int(ns()) ni lambda: int(ns()) int(ns()) int ns() ns na = lambda: list(map(int, stdin.readline().split())) na lambda: list(map(int, stdin.readline().split())) list(map(int, stdin.readline().split())) list map(int, stdin.readline().split()) map int stdin.readline().split() stdin.readline().split stdin.readline() stdin.readline stdin readline split nn = lambda: list(stdin.readline().split()) nn lambda: list(stdin.readline().split()) list(stdin.readline().split()) list stdin.readline().split() stdin.readline().split stdin.readline() stdin.readline stdin readline split ns = lambda: stdin.readline().rstrip() ns lambda: stdin.readline().rstrip() stdin.readline().rstrip() stdin.readline().rstrip stdin.readline() stdin.readline stdin readline rstrip h,w,a,b = na() h na() na w a b ans = [] ans [] for i in range(h):
    a = min(a,w-a)
    k = '0'*a + '1'*(w-a) if i < b else '1'*a+'0'*(w-a)
    ans.append(k) i range(h) range h a = min(a,w-a) a min(a,w-a) min a w-a w a k = '0'*a + '1'*(w-a) if i < b else '1'*a+'0'*(w-a) k '0'*a + '1'*(w-a) if i < b else '1'*a+'0'*(w-a) i < b i b '0'*a + '1'*(w-a) '0'*a '0' a '1'*(w-a) '1' w-a w a '1'*a+'0'*(w-a) '1'*a '1' a '0'*(w-a) '0' w-a w a ans.append(k) ans.append ans append k print(*ans, sep='\n') print *ans ans sep='\n' sep '\n' b = na() na() b ns = lambda: stdin.readline().rstrip() lambda: stdin.readline().rstrip() ns nn = lambda: list(stdin.readline().split()) lambda: list(stdin.readline().split()) nn h,w,a,b = na() na() h a,b = na() na() a k = '0'*a + '1'*(w-a) if i < b else '1'*a+'0'*(w-a) '0'*a + '1'*(w-a) if i < b else '1'*a+'0'*(w-a) k stdin = sys.stdin sys.stdin stdin ans = [] [] ans na = lambda: list(map(int, stdin.readline().split())) lambda: list(map(int, stdin.readline().split())) na w,a,b = na() na() w ni = lambda: int(ns()) lambda: int(ns()) ni a = min(a,w-a) min(a,w-a) a
import sys
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()

h,w,a,b = na()
ans = []

for i in range(h):
    a = min(a,w-a)
    k = '0'*a + '1'*(w-a) if i < b else '1'*a+'0'*(w-a)
    ans.append(k)

print(*ans, sep='\n')