import java.util.Scanner

import scala.collection.mutable
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

    val ar = new ArrayBuffer[Long]()
    for (a <- A.indices; b <- B.indices; c <- C.indices) {
      if ((a + 1) * (b + 1) * (c + 1) <= K) {
        ar.append(A(a) + B(b) + C(c))
      }
    }
    ar.sorted.reverse.take(K).mkString("\n")
  }
}
