import sys

stdin = sys.stdin

ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split())) # 
rs = lambda: stdin.readline().rstrip()  # ignore trailing spaces

H, W, A, B = rl()
answer = ['0'*(W-A) + '1'*A for _ in range(H-B)]
answer += ['1'*(W-A) + '0'*A for _ in range(B)]
for x in answer:
    print(*x, sep='') import sys sys stdin = sys.stdin stdin sys.stdin sys stdin ri = lambda: int(rs()) ri lambda: int(rs()) int(rs()) int rs() rs rl = lambda: list(map(int, stdin.readline().split())) rl 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 rs = lambda: stdin.readline().rstrip() rs lambda: stdin.readline().rstrip() stdin.readline().rstrip() stdin.readline().rstrip stdin.readline() stdin.readline stdin readline rstrip H, W, A, B = rl() H rl() rl W A B '0'*(W-A) + '1'*A for _ in range(H-B) for _ in range(H-B) _ range(H-B) range H-B H B for _ in range(H-B) '0'*(W-A) + '1'*A '0'*(W-A) '0' W-A W A '1'*A '1' A answer = ['0'*(W-A) + '1'*A for _ in range(H-B)] answer ['0'*(W-A) + '1'*A for _ in range(H-B)] '1'*(W-A) + '0'*A for _ in range(B) for _ in range(B) _ range(B) range B for _ in range(B) '1'*(W-A) + '0'*A '1'*(W-A) '1' W-A W A '0'*A '0' A answer += ['1'*(W-A) + '0'*A for _ in range(B)] answer ['1'*(W-A) + '0'*A for _ in range(B)] for x in answer:
    print(*x, sep='') x answer print(*x, sep='') print *x x sep='' sep '' stdin = sys.stdin sys.stdin stdin answer = ['0'*(W-A) + '1'*A for _ in range(H-B)] ['0'*(W-A) + '1'*A for _ in range(H-B)] answer ri = lambda: int(rs()) lambda: int(rs()) ri A, B = rl() rl() A rl = lambda: list(map(int, stdin.readline().split())) lambda: list(map(int, stdin.readline().split())) rl H, W, A, B = rl() rl() H rs = lambda: stdin.readline().rstrip() lambda: stdin.readline().rstrip() rs W, A, B = rl() rl() W answer += ['1'*(W-A) + '0'*A for _ in range(B)] ['1'*(W-A) + '0'*A for _ in range(B)] answer B = rl() rl() B
import sys

stdin = sys.stdin

ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split())) # 
rs = lambda: stdin.readline().rstrip()  # ignore trailing spaces

H, W, A, B = rl()
answer = ['0'*(W-A) + '1'*A for _ in range(H-B)]
answer += ['1'*(W-A) + '0'*A for _ in range(B)]
for x in answer:
    print(*x, sep='')
