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

s4 = 0
s2 = 0
s1 = 0
as.each do |a|
    if a % 4 == 0
        s4 += 1
    elsif a % 2 == 0
        s2 += 1
    else
        s1 += 1
    end
end

if s2 > 0 && s1 > 0
    if s1 + 1 - s4 * 2 > 0
        puts 'No'
    else
        puts 'Yes'
    end
else
    if s1 - s4 * 2 > 0
        puts 'No'
    else
        puts 'Yes'
    end
end