n = gets.chomp.to_i
a = gets.chomp.split(' ').map(&:to_i)
odd = a.select { |item| item % 2 != 0 }.count
even = n - odd
 
four = a.select { |item| item % 4 == 0}.count
 
count = (even - four) % 2 + odd - 2 * four
 
if count <= 0
  print 'YES'
else
  print 'NO'
end