N = gets.to_i
AS = gets.split.map(&:to_i)

multiple_numbers = []
other_numbers = []
two_numbers = []

AS.each do |a|
  if a == 2
    two_numbers << a
    if two_numbers.length == 2
      two_numbers = []
    end
  elsif a % 4 == 0
    multiple_numbers << a
  else
    other_numbers << a
  end
end
other_numbers += two_numbers

if multiple_numbers.length >= other_numbers.length - 1
  puts('Yes')
else
  puts('No')
end