#include <iostream>

using namespace std;

int n, a, b, t, c;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> a >> b;
  while (n--) {
    cin >> t;
    if (t < a || t >= b)
      ++c;
  }
  cout << c << endl;
  return 0;
}