import java.util.Scanner

object Main {
  def main(args: Array[String]) {
    val result = solve(new Scanner(System.in))
    if (result.length > 0) println(result)
  }

  def solve(in: String): String = solve(new Scanner(in))

  def solve(sc: Scanner): String = {
    val X = sc.nextInt
    val Y = sc.nextInt
    val Z = sc.nextInt
    val K = sc.nextInt
    val A = Array.fill(X)(sc.nextLong).sorted.reverse
    val B = Array.fill(X)(sc.nextLong).sorted.reverse
    val C = Array.fill(X)(sc.nextLong).sorted.reverse

    val AB = (for (a <- A.indices; b <- B.indices) yield A(a) + B(b)).sorted.reverse
    val ABC = (for (ab <- 0 until Array(K, AB.length).min; c <- C.indices) yield AB(ab) + C(c)).sorted.reverse

    ABC.take(K).mkString("\n")
  }
}
