function min(N,A,B){
var R=0;
 if(A%2==0){
   if(B%2==0){
     R=(B-A)/2;
     console.log(R);
   }
    else if(B%2!=0){
     R=B-A+1;
      console.log(R);
 }}
  else if(A%2!=0){
    if(B%2==0){
     R=B-A+1;
      console.log(R);
    }
     else if(B%2!=0){
       R=(B-A)/2;
       console.log(R);
     }
  }
}