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

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