import java.util.Scanner; class no647{ public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); int n,m,a[]=new int[10000],b[]=new int[10000],c[]=new int[1000],x,y,i,j,max=1; n=stdIn.nextInt(); for(i=0;i=x&&b[j]<=y) c[i]++; if(max