#include <iostream>
using namespace std;

int main() {
    int N, A, B;
    cin >> N >> A >> B;
    int ret = 0;
    for(int i=0; i<N; ++i) {
        int t;
        cin >> t;
        if(t < A || B <= t) {
            ret++;
        }
    }
    cout << ret << endl;
}
