Problem: problem

$ M $ students will be tested in a classroom with $ N $ seats in a straight line. Seats are numbered $ 1 \ dots N $ from the front, and $ 1 $ per seat can seat $ 1 $ students.

Now each student is sitting in the $ A_1, \ dots, A_M $ seats.

To start the test, the following conditions must be met:

* $ 1 \ dots M $ students are sitting in every seat.



Therefore, we decided to repeat the following operations until the conditions were met.

* Move the student sitting at the back and sit at the front of the vacant seats.



Find the number of operations required to meet the conditions.



output

Output the number of operations required to meet the conditions. Also, output a line break at the end.

Example

Input

6 4
1 4 5 6


Output

2

Solution (in CPP):

Solution:
#include <iostream>
using namespace std;

void swap(int*, int*);

int main()
{
  int i,n,m,min,ban;
  cin>>n>>m;

  int* a;
  a= new int [m];

  for(i=0;i<m;i++){
    cin>>a[i];
  }

  for(i=0;i<m;i++){
    ban=i;
    min=a[i];
    for(int j=i;j<m;j++){
      
      if(min>a[j]){
        min=a[j];
        ban=j;
      }
      
    }
    swap(&a[i],&a[ban]);

  }

  ban=0;
  for(i=0;i<m;i++){
    if(a[i]<=m) ban++;
    else break;
  }

  cout<<m-ban<<endl;

  //for(i=0;i<m;i++) cout<<a[i]<<endl;

  delete [] a;
  return 0;

}

void swap(int* a,int* b){
  int c;
  c = *a;
  *a = *b;
  *b= c;
}