#include <cstdio>
#include <iostream>
using namespace std;

int main()
{

	int n,a,b;
	scanf("%d %d %d",&n,&a,&b);
	int ans = 0;
	int x;
	for(int i = 1; i <= n; ++i)
	{
		scanf("%d",&x);
		if(x < a) ans++;
		else if(x >= b) ans++;
	}
	cout << ans << endl;

	return 0;
}
