#include<iostream>
using namespace std;
int main(){
	int n,a,b,ct =0;
	scanf("%d %d %d",&n,&a,&b);
	for(int i = 0;i<n;i++){
		int c;
		scanf("%d",&c);
		if(c <a || c>=b){
			ct++;
		}
	}
	printf("%d\n",ct);
	return 0;
}