n = gets.to_i
a = gets.split.map(&:to_i)

c4 = 0
c2 = 0
a.each do |e|
    if e % 4 == 0
        c4 += 1
    elsif e % 2 == 0
        c2 += 1
    end
end

c2 = 0 if c2 == 1
puts c4 * 3 + c2 >= n ? "Yes" : "No"