#include <iostream>
using namespace std;

int main() {
	int n,a,b;
	cin >> n >> a >> b;
	
	int count=0;
	
	int t[n];
	for(int i=0; i<n; i++){
		cin >> t[i];
		if(t[i]<a || t[i]>=b){count++;}
	}
	
	cout << count <<endl;
	
	return 0;
}