N = gets.to_i
a = gets.split.map(&:to_i)
even = a.select(&:even?)
four = even.select {|i| i % 4 == 0 }
x = four.size
y = even.size - x
z = a.size - x - y
if x * 2 + 1 >= N || x * 2 + y >= N
  puts "YES"
else
  puts "NO"
end
