import Data.List
main=do
 [x,y,z,k]<-map read.words<$>getLine
 xn<-map read.words<$>getLine
 yn<-map read.words<$>getLine
 zn<-map read.words<$>getLine
 [p,q,r]<-map reverse.sort [xn,yn,zn]
 mapM_ print$take k$reverse.sort[x+y+z|x<-p,y<-q,z<-r]