import           Control.Monad

main :: IO ()
main = do
  [a, b, c] <- replicateM 3 readLn :: IO [Int]
  mapM_ (putStrLn . unwords . map show) $ solve a b c

solve :: Int -> Int -> Int -> [[Int]]
solve a b c = f
  where
    n = 3 * c
    f = [ [a, b, n - (a + b)]
        , [2 * n - (2*a + b + 2*c),  c, 2 * a + b + c - n]
        , [a + b + 2*c - n, n - (b + c) , n - (a + c)]]

