import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS
import Data.List

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine

main = do
    n <- getInt
    as <- getIntList
    let sig = cycle [1, -1]
    let ss = zipWith (*) sig (as ++ as)
    putStrLn . unwords $ map (show . abs . sum . take n . flip drop ss) [0..n-1]