#include <iostream>
using namespace std;
int N, A, B, x;
int main() {
	cin >> N >> A >> B;
	int ret = 0;
	for(int i = 0; i < N; i++) {
		cin >> x;
		if(!(A <= x && x < B)) ret++;
	}
	cout << ret << endl;
	return 0;
}