#include <iostream>
using namespace std;
int a,b,c;
int main()
{
  int n,i,j,k,t;
 cin>>a>>b>>c; 
 k=0;
for (i=1; i<=a; i++)  
  {
  cin>>t;
  if (t<b||t>=c) k++;	
  }
  cout<<k<<endl;
  return 0;  
}
