require 'pp'

n = gets.chomp!.to_i
a_n = gets.chomp!.split(" ").map(&:to_i)

x4_count = a_n.count {|a| a % 4 == 0 }
x2_count = a_n.count {|a| a % 4 != 0 && a % 2 == 0 }

if x4_count * 2 + 1 + x2_count / 2 >= n
    puts "Yes"
else
    puts "No"
end
