eval'_,*A='+$<.read.split*?, *x,y,z=A.sort $><<[x,z>A[-1]?[z,y]:[y,z]]*' '