n,a,b=list(map(int,input().split()))

c=0

for _ in range(n):

  t=int(eval(input()))

  if t<a or b<=t:

    c+=1

print(c)
def r(t,a,b):return t<a or b<=t

n,a,b=list(map(int,input().split()));print((sum(r(int(eval(input())),a,b)for _ in[0]*n)))
n, a, b = list(map(int, input().split()))
c = 0
for _ in range(n):
    t = int(eval(input()))
    if t < a or b <= t:
        c += 1
print(c)

def r(t, a, b):
    return t < a or b <= t


n, a, b = list(map(int, input().split()))
print((sum(r(int(eval(input())), a, b) for _ in [0] * n)))

+def r(t, a, b): +    return t < a or b <= t + + -c = 0 -for _ in range(n): -    t = int(eval(input())) -    if t < a or b <= t: -        c += 1 -print(c) +print((sum(r(int(eval(input())), a, b) for _ in [0] * n)))