H, W, A, B = map(int, input().split())
ans = [[0] * W for i in range(H)]
for i in range(A):
	for j in range(B):
		ans[j][i] = 1
i = A
while i < W:
	j = B
	while j < H:
		ans[j][i] = 1
		j += 1
	i += 1
for i in ans:
	for j in i:
		print(j, end='')
	print() H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B [0] * W for i in range(H) for i in range(H) i range(H) range H for i in range(H) [0] * W [0] 0 W ans = [[0] * W for i in range(H)] ans [[0] * W for i in range(H)] for i in range(A):
	for j in range(B):
		ans[j][i] = 1 i range(A) range A for j in range(B):
		ans[j][i] = 1 j range(B) range B ans[j][i] = 1 ans[j][i] [j] ans j i 1 i = A i A while i < W:
	j = B
	while j < H:
		ans[j][i] = 1
		j += 1
	i += 1 i < W i W j = B j B while j < H:
		ans[j][i] = 1
		j += 1
	 j < H j H ans[j][i] = 1 ans[j][i] [j] ans j i 1 j += 1 j 1 i += 1 i 1 for i in ans:
	for j in i:
		print(j, end='')
	print() i ans for j in i:
		print(j, end='')
	 j i print(j, end='') print j end='' end '' print() print W, A, B = map(int, input().split()) map(int, input().split()) W i = A A i ans = [[0] * W for i in range(H)] [[0] * W for i in range(H)] ans H, W, A, B = map(int, input().split()) map(int, input().split()) H j = B B j B = map(int, input().split()) map(int, input().split()) B A, B = map(int, input().split()) map(int, input().split()) A i += 1 1 i j += 1 1 j
H, W, A, B = map(int, input().split())
ans = [[0] * W for i in range(H)]
for i in range(A):
	for j in range(B):
		ans[j][i] = 1
i = A
while i < W:
	j = B
	while j < H:
		ans[j][i] = 1
		j += 1
	i += 1
for i in ans:
	for j in i:
		print(j, end='')
	print()