#include <iostream>

using namespace std;

int main(void)
{
	int n, a, b;
	cin >> n >> a >> b;
	int ans = 0;
	int get;
	for (int i = 0; i < n; i++) {
		cin >> get;
		if (get < a || get >= b) ans++;
	}
	cout << ans << endl;
	return 0;
}
