local n = io.read("*n", "*l")
local str = io.read()
local t = {0, 0, 0}
for v in str:gmatch("%d+") do
  local a = tonumber(v)
  if a % 4 == 0 then
    t[1] = t[1] + 1
  elseif a % 2 == 0 then
    t[2] = t[2] + 1
  else
    t[3] = t[3] + 1
  end
end
if n == 1 then
  if t[3] == 1 then
    print("Yes")
  else
    print("No")
  end
elseif t[1] + 1 < t[3] then
  print("No")
elseif t[1] + 1 == t[3] then
  if t[2] == 0 then
    print("Yes")
  else
    print("No")
  end
else
  print("Yes")
end
