N = gets.to_i
A = gets.split.map(&:to_i)

n4 = 0
n2 = 0
other = 0
A.each do |i|
  if i % 4 == 0
    n4 += 1
  elsif i % 2 == 0
    n2 += 1
  else
    other += 1
  end
end

puts other <= n4 ? "Yes" : "No"