#include <iostream>
#include <stdio.h>
#include <math.h>

using namespace std;

int main(){

	int N,A,B,count=0,t;

	cin >> N >>A >> B;

	for (int i = 0; i < N; ++i)
	{
		cin >> t;

		if(t<A||B<=t)count++;

	}
	cout << count << endl;
	return 0;
}