import java.util.Scanner

import scala.collection.mutable.ArrayBuffer

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

    // A+B の上位を求める
    var AB = new ArrayBuffer[Long]()
    for (ai <- A.indices; bi <- B.indices) {
      AB.append(A(ai) + B(bi))
    }
    AB = AB.sorted.reverse

    // AB+C の上位を求める
    var ABC = new ArrayBuffer[Long]()
    for (abi <- AB.indices; ci <- C.indices) {
      ABC.append(AB(abi) + C(ci))
    }
    ABC = ABC.sorted.reverse

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