import Data.List (sort)

main = do
    k <- (last . map read . words <$> readLn)
    a <- (map read :: [String] -> [Integer]) . words <$> readLn
    b <- (map read :: [String] -> [Integer]) . words <$> readLn
    c <- (map read :: [String] -> [Integer]) . words <$> readLn
    putStr $ (unlines . map show . take k . reverse . sort) $ hoge <$> a <*> b <*> c

    
hoge a b c = a + b + c
