#include<cstdio>

int main(){
  int n,a,b,ans = 0;
  scanf("%d %d %d",&n,&a,&b);
  for(int i=0;i<n;i++){
    int t;
    scanf("%d",&t);
    if(t<a||t>=b) ans++;
  }
  printf("%d\n",ans);
  return 0;
}
