object Main extends App {
  var k = 0
  var count = readLine.split(" ")
  var size = count(3).toInt-1
  var a, b , c = readLine.split(" ").map(_.toLong).sortBy(-_)
  var sum = for(v1 <- a.take(size);v2 <- b.take(size);v3 <- c.take(size)) yield {
  				v1.toLong + v2.toLong + v3.toLong
			   }
  sum = sum.sortBy(-_)
  for(i <- 0 to size){
  println(sum(i))
  }
}