What is the most distant point from the sea in POJ3525 problem?