import Control.Applicative

main :: IO ()
main = do
    n <- readLn :: IO Int
    as <- (map read . words) <$> getLine
    bs <- (map read . words) <$> getLine
    let ds = zipWith (-) as bs

    let res = foldl increment (0, 0) ds
    if fst res >= snd res then
        putStrLn "Yes"
    else
        putStrLn "No"
    where increment c d
            | d == 0 = c
            | d > 0 = incSnd c (abs d)
            | d < 0 = incSnd (incFst c ((d - 1) `div` (-2))) 1

incFst :: (Int, Int) -> Int -> (Int, Int)
incFst c i = (fst c + i, snd c)

incSnd :: (Int, Int) -> Int -> (Int, Int)
incSnd c i = (fst c, snd c + i)
