import java.io.*; import java.util.*; import java.text.*; public class D_matsu{ public static void main(String args[]) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); solve(in); } private static void solve(BufferedReader in) throws IOException{ int n; LinkedList l = new LinkedList();; double dist; DecimalFormat formatter = new DecimalFormat("#0.0"); while(true){ n = Integer.parseInt(in.readLine()); if(n==0) break; for(int i=0;i now.distance(f)){ next = f; } } } l.remove(next); return next; } } class Flag{ int x; int y; Flag(int inx,int iny){ x = inx; y = iny; } public static double arg(Flag f1, Flag f2, Flag f3){ double arg1, arg2, ansarg; arg1 = Math.atan2(f2.y - f1.y, f2.x - f1.x); arg2 = Math.atan2(f3.y - f2.y, f3.x - f2.x); ansarg = arg1 - arg2; if(ansarg<0) ansarg += Math.PI*2; return ansarg; } public double distance(Flag f){ return Math.sqrt((x - f.x)*(x - f.x) + (y - f.y)*(y - f.y)); } }