#include <iostream>
#include <string>
#include <math.h>
using namespace std;
double distance(int x1,int y1,int x2,int y2){
double distance=sqrt(pow(x1-x2,2)+pow(y1-y2,2));
return distance;
}
int main()
{
int n;
int a,b;
cin>>n;
int x[n];
int y[n];
for(int i=0;i<n;i++)
cin>>x[i]>>y[i];
double max=distance(x[0],y[0],x[1],y[1]);
for(int i=0;i<n;i++){
for(int k=i+1;k<n;k++){
if(distance(x[i],y[i],x[k],y[k])>max){
max=distance(x[i],y[i],x[k],y[k]);
a=i;
b=k;}
}
}
cout<<a<<" "<<b;
return 0;
}