def main()
  n = gets.chomp.to_i
  x = gets.chomp.split(' ').map(&:to_i)
  cnt4 = x.select{|t| t.modulo(4) == 0}.size
  cnt2 = x.select{|t| t == 2}.size
  if  cnt4 >= (x.size/2) - cnt2/2
    puts "YES"
  else
    puts "NO"
  end
end

main()