int main(){
  int N, count, cap;
  cin >> N >> count >> cap;
  
  vector<int> num(N);
  for (int i = 0; i < N; i++){
    if (num.at(i) = i){
      cap == num.at(i) ;
      num.at(i) == num.at(i - 1);
      num.at(i - 1) == cap;
      count++;
    }
    else
      return(0);
  }
  cout >> count >> endl;
}
      