@staticmethod
def a():
    (n, s, t, *a) = map(int, sys.stdin.read().split())
    a = np.array(a)
    np.cumsum(a, out=a)
    print(((s <= a) & (a <= t)).sum())
@staticmethod
def a():
    (n, s, t, *a) = map(int, sys.stdin.read().split())
    a = np.array(a)
    np.cumsum(a, out=a)
    print(((s <= a) & (a <= t)).sum())