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