Gena do not like geometry ask solve problem himA rectangle side parallel coordinate axis contain n dot Lets consider point plane Lets count distance point give n point let sort number nondecrease order well beauty point second element array if mimimum element array beaty equal minimumFind maximum beauty point inside give rectangle