#include<bits/stdc++.h>
using namespace std;
const int N=200;
struct testpos{
int id;
int dis;
};
testpos test[N];
bool cmp(testpos a,testpos b){
if(a.dis<b.dis){
return true;
}
if(a.dis==b.dis){
if(a.id<b.id){
return true;
}
}
return false;
}
int main(){
int n,x,y;
int a,b;
int dis;
cin>>n>>x>>y;
for(int i=0;i<n;i++){
cin>>a>>b;
dis=(a-x)*(a-x)+(b-y)*(b-y);
test[i].id=i+1;
test[i].dis=dis;
}
sort(test,test+n,cmp);
for(int i=0;i<3;i++){
cout<<test[i].id<<endl;
}
return 0;
} 在这里插入代码片