require "prime"
n = gets.chomp.to_i
a = gets.chomp.split(" ").map(&:to_i)
count = 0
ni = 0
iranai = 0
a.each do |i|
    i = i.prime_division.sort
    if i == []
        iranai += 1
         next
    elsif i[0][0] == 2 && i[0][1] >= 2
        count += 1
    elsif i[0][0] == 2 && i[0][1] == 1
        ni += 1
    else
        iranai+= 1
    end
end
if count > iranai
    puts "Yes"
elsif ni == 0 && count >= iranai - 1
    puts "Yes"
else
    puts "No"
end