h, w, a, b = gets.split.map(&:to_i)
arr = Array.new(h).map{Array.new(w, 1)}

for i in 0..(2*b-1)
  for j in 0..(2*a-1)
    arr[i][j] = ((i/b) + j/a) % 2
  end
end

for i in 0..(b-1)
  for j in 2*a..(w-1)
    arr[i][j] = 0
  end
end
for i in 2*b..(h-1)
  for j in 0..(a-1)
    arr[i][j] = 0
  end
end

for i in 0..(h-1)
  puts arr[i].join
end