1 1000000000 7
1000000000 9
 3 2 2
2 4
2 1
3 6
 2 1000000000 100000
1000000000 1000000
1000000000 10000
 1 100 100
50 70
 1 100 100
101 100

1
1000000000 8 2
2 3 1
1000000000 100001 1
99 100 1
101 100
import java.util.*;
public class SHAWARNA
{
   public static void main(String args[]){
     Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int sx = sc.nextInt();
      int sy = sc.nextInt();
      int [] c = new int[8];
      for(int i = 0 ; i<n;i++){
       int x = sc.nextInt();
       int y = sc.nextInt();
       if((x-sx)>0 && (y-sy)>=0)
         c[0]++;
        if((x-sx)>=0 && (y-sy)>0)
         c[1]++;
        if((x-sx)<=0 && (y-sy)>0)
         c[2]++;
        if((x-sx)<0 && (y-sy)>=0)
         c[3]++;
        if((x-sx)<0 && (y-sy)<=0)
         c[4]++;
        if((x-sx)<=0 && (y-sy)<0)
         c[5]++;
        if((x-sx)>=0 && (y-sy)<0)
         c[6]++;
        if((x-sx)>0&& (y-sy)<=0)
         c[7]++;
       
      }
      int l = 0,k=c[0];
       for(int i=0;i<8;i++){
           if(c[i]>k)
           { l=i;
            k=c[i];}
         }
      if(l==0 || l==7){
       System.out.println(k);
       System.out.print(sx+1+" ");
       System.out.print(sy);
       System.out.println();}
      if(l==1 || l==2){
       System.out.println(k);
       System.out.print(sx+" ");
       System.out.print(sy+1);
       System.out.println();}
      if(l==3 || l==4){
       System.out.println(k);
       System.out.print(sx-1+" ");
       System.out.print(sy);
       System.out.println();}
      if(l==5 || l==6){
       System.out.println(k);
       System.out.print(sx+" ");
       System.out.print(sy-1);
       System.out.println();}
     
   }
}