program rasst(input,output);
const n=30;
type mas=array [1..n] of real;
var i,j,m1,m2:integer; x,y:mas; m,max:real;
begin  for i:=1 to n do read(x[i],y[i]);
       max:=0;
       for i:=1 to n do
       for j:=i+1 to n do
       begin m:=sqrt(sqr(x[i]-x[j])+sqr(y[i]-y[j]));
          if m>max then begin max:=m; m1:=j; m2:=i end end;
       writeln(m1,m2)
end.

