#include <iostream>
using namespace std;
int main(void){
    int n, a, b;
    cin >> n >> a >> b;
    int t, ans = n;
    for (int i = 0; i < n; i++) {
        cin >> t;
        if(a<=t and t<b) ans--;
    }
    std::cout << ans << std::endl;
}