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

if even - four > 0
  print odd > four ? 'NO' : 'YES'
else
  print odd > (four + 1) ? 'NO' : 'YES'
end