#include"stdio.h"

int num;
int time;
int start;
int end;
int ans = 0;

int main() {
	scanf("%d %d %d", &num, &start, &end);
	for (int i = 0; i < num; i++) {
		scanf("%d", &time);
		if (time < start || time >= end)ans++;
	}
	printf("%d\n", ans);
	return 0;
}