import Control.Applicative
import Control.Monad
import Data.List
import Data.Char
strToInt s = (read :: String -> Int) s

main :: IO ()
main = do
    -- 整数の入力
    n <- getLine
    -- スペース区切り整数の入力
    as <- map strToInt . words <$> getLine
    bs <- map strToInt . words <$> getLine
    let cs = zipWith (\a b -> b - a) as bs
        negs = sum $ filter (<= 0) cs
        poss = sum $ filter (>= 0) cs
    if (abs negs) * 2 == poss then (if null $ filter (odd) (filter (>= 0) cs) then putStrLn "Yes" else putStrLn "No")
                                else if (abs negs) * 2 < poss then putStrLn "Yes" else putStrLn "No"
