#include <bits/stdc++.h>
using namespace std;

int main() {

    int N,A,B;
    cin >> N >> A >> B;

    int ans = 0;
    for(int i=0; i<N; i++){
	int in; cin >> in;
	if( A<= in and in < B ) continue;
	ans++;
    }
    cout << ans <<endl;
				    
	


}
