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

h = 0
s = 0

a.each{|t|
  if t%4==0 then
    h += 1
  elsif t%2!=0 then
    s -= 1
  end
}

#p h,s

if N > 3 then 
  puts (h+s) >= 0 ? "YES" : "NO"
else
  puts h >= 1 ? "YES" : "NO"
end