import sys

H,W,A,B = map(int, input().split())

if A > -(-W//2) or B > -(-H//2):
	print("No")
	sys.exit()

orig_x = []
orig_y = []
for i in range(W):
	if i < A:
		orig_x.append(1)
		orig_y.append(0)
	else:
		orig_x.append(0)
		orig_y.append(1)

ans = []
for i in range(H):
	if i < B:
		ans.append(orig_x)
	else:
		ans.append(orig_y)

for i in range(H):
	for j in range(W):
		if j == W-1:
			print(ans[i][j])
		else:
			print(ans[i][j], end="") import sys sys H,W,A,B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B if A > -(-W//2) or B > -(-H//2):
	print("No")
	sys.exit() A > -(-W//2) or B > -(-H//2) A > -(-W//2) A -(-W//2) -W//2 -W W 2 B > -(-H//2) B -(-H//2) -H//2 -H H 2 print("No") print "No" sys.exit() sys.exit sys exit orig_x = [] orig_x [] orig_y = [] orig_y [] for i in range(W):
	if i < A:
		orig_x.append(1)
		orig_y.append(0)
	else:
		orig_x.append(0)
		orig_y.append(1) i range(W) range W if i < A:
		orig_x.append(1)
		orig_y.append(0)
	else:
		orig_x.append(0)
		orig_y.append(1) i < A i A orig_x.append(1) orig_x.append orig_x append 1 orig_y.append(0) orig_y.append orig_y append 0 orig_x.append(0) orig_x.append orig_x append 0 orig_y.append(1) orig_y.append orig_y append 1 ans = [] ans [] for i in range(H):
	if i < B:
		ans.append(orig_x)
	else:
		ans.append(orig_y) i range(H) range H if i < B:
		ans.append(orig_x)
	else:
		ans.append(orig_y) i < B i B ans.append(orig_x) ans.append ans append orig_x ans.append(orig_y) ans.append ans append orig_y for i in range(H):
	for j in range(W):
		if j == W-1:
			print(ans[i][j])
		else:
			print(ans[i][j], end="") i range(H) range H for j in range(W):
		if j == W-1:
			print(ans[i][j])
		else:
			print(ans[i][j], end="") j range(W) range W if j == W-1:
			print(ans[i][j])
		else:
			print(ans[i][j], end="") j == W-1 j W-1 W 1 print(ans[i][j]) print ans[i][j] [i] ans i j print(ans[i][j], end="") print ans[i][j] [i] ans i j end="" end "" B = map(int, input().split()) map(int, input().split()) B orig_x = [] [] orig_x A,B = map(int, input().split()) map(int, input().split()) A orig_y = [] [] orig_y H,W,A,B = map(int, input().split()) map(int, input().split()) H W,A,B = map(int, input().split()) map(int, input().split()) W ans = [] [] ans
import sys

H,W,A,B = map(int, input().split())

if A > -(-W//2) or B > -(-H//2):
	print("No")
	sys.exit()

orig_x = []
orig_y = []
for i in range(W):
	if i < A:
		orig_x.append(1)
		orig_y.append(0)
	else:
		orig_x.append(0)
		orig_y.append(1)

ans = []
for i in range(H):
	if i < B:
		ans.append(orig_x)
	else:
		ans.append(orig_y)

for i in range(H):
	for j in range(W):
		if j == W-1:
			print(ans[i][j])
		else:
			print(ans[i][j], end="")