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] * 2
flag2 = ((counter[2] >= 2) or (counter[1] + counter[2] <= counter[4] * 2))

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