import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n,x,y,i,j,temp,total; n = sc.nextInt(); x = sc.nextInt(); y = sc.nextInt(); int lat[] = new int[n]; int lon[] = new int[n]; int h[] = new int[n]; int p[] = new int[n]; for(i=0;ih[j+1]) { temp = h[j]; h[j] = h[j+1]; h[j+1] = temp; temp = lat[j]; lat[j] = lat[j+1]; lat[j+1] = temp; temp = lon[j]; lon[j] = lon[j+1]; lon[j+1] = temp; temp = p[j]; p[j] = p[j+1]; p[j+1] = temp; } } } total = 0; for(i=0;i