import qualified Data.Vector.Unboxed as VU
import qualified Data.ByteString.Char8 as BS
import Data.Char (isSpace)

main = do
  n <- readLn :: IO Int
  as <- VU.unfoldrN n (BS.readInt . BS.dropWhile isSpace) <$> BS.getLine :: IO (VU.Vector Int)
  let fil = (VU.length $ VU.filter ((==0) . flip mod 4) $ VU.filter (/=2) as) == VU.length as `div` 2 
  putStrLn $ if fil then "Yes" else "No"
