main = do
    [a,b,c,n] <- (fmap read) <$> words <$> getLine
    let ans = a-b
    let out = if ans<=10^18
        then
            if even n
                then show ans
                else show (-ans)
        else
            "Unfair"
    putStrLn out
