gets
arr = gets.chomp.split(" ").map(&:to_i)
odd_count = arr.count(&:odd?)
return puts "YES" if odd_count.size == 0

even_count = arr.size - odd_count
count_4 = arr.count { |n| n % 4 == 0 }
case odd_count
when 1, 2
  puts count_4 >= 2 ? "YES" : "NO"
else
  puts count_4 >= (odd_count - 2) * 2 + 2 ? "YES" : "NO"
end