#include #include #include #include #include #include #include int main(){ int n; int x; int y,sum=0; int k[100000],m[10000],z[10000]; scanf("%d %d %d",&n,&x,&y); for(int a0 = 0; a0 < n; a0++){ int latitude; int longitude; int height; int points; scanf("%d %d %d %d",&latitude,&longitude,&height,&points); k[a0]=points; m[a0]=latitude; z[a0]=longitude; } for(int a0 = 0; a0 < n; a0++) { if(a0