($n,@a)=`fmt -0`;$c[$_]+=$t+=$_<$n?$s+=$a[$j++]:($s-=$.=$a[$k++])-$n*$.for(0..$n*2-1)x2;pop@c;print"0 @c"