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

counter = {1 => 0, 2 => 0, 4 => 0}

a.map{|v| if v % 2 == 0 then (v % 4 == 0 ? 4 : 2) else 1 end}.each{|v| counter[v] += 1}

flag1 = counter[1] <= counter[4]

puts (flag1 ? 'Yes' : 'No')