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