var GET=(function(){function f(s){return new g(s);}function g(s){this._s=s.trim().split("\n");this._y=0;}g.prototype.a=function(f){var s=this._s, y=this._y, r;if(typeof s[y]==="string")s[y]=s[y].split(" ").reverse();r=s[y].pop();if(!s[y].length)this._y++;return f?r:+r;};g.prototype.l=function(f){var s=this._s[this._y++].split(" ");return f?s:s.map(a=>+a);};g.prototype.m=function(n,f){var r=this._s.slice(this._y,this._y+=n).map(a=>a.split(" "));return f?r:r.map(a=>a.map(a=>+a));};g.prototype.r=function(n,f){var r=this._s.slice(this._y,this._y+=n);return f?r:r.map(a=>+a);};return f;})();
var o=GET(require("fs").readFileSync("/dev/stdin","utf8"));
function xArray(v){var a=arguments,l=a.length,r="Array(a["+--l+"]).fill(v)";while(--l)r="Array(a["+l+"]).fill(0).map(x=>"+r+")";return eval(r);}
function QuickSelect(a,k){--k;for(var l=0,r=a.length-1,i,j,m,p,t;l<r;){i=l-1;p=a[m=l+r>>1];a[m]=a[j=r];while(1){while(i<j)if(a[++i]>p)break;while(i<j)if(a[--j]<p)break;if(i>=j)break;t=a[i];a[i]=a[j];a[j]=t;}a[r]=a[i];a[i]=p;if(i<k)l=i+1;else if(i>k)r=i-1;else break;}return a[k];}

console.log(main());
function main(){
  var x = o.a();
  var y = o.a();
  var z = o.a();
  var k = o.a();
  var a = o.l();
  var b = o.l();
  var c = o.l();
  var u = [];
  for(var i = 0; i < x; i++)for(var j = 0; j < y; j++){
    u.push(a[i]+b[j]);
  }
  if(k < u.length){
    u = solve(u,k);
  }
  var ans = [];
  for(var i = 0; i < z; i++)for(var j = 0; j < u.length; j++){
    ans.push(c[i]+u[j]);
  }
  if(k < ans.length){
    ans = solve(ans,k);
  }

  return ans.sort((a,b)=>b-a).join("\n");
}
function solve(a,k){
  var t = QuickSelect(a,a.length - k), v = [];
  for(var i = 0; i < a.length; i++){
    if(t < a[i])v.push(a[i]);
  }
  while(v.length < k)v.push(t);
  return v;
}