N,L,H = list(map(int, input().split(' '))) ns = list(map(int, input().split(' '))) solution = 0 for i in range(L, H+1): yes = 0 for n in ns: if i % n == 0: yes += 1 if yes == 1: solution += 1 print(solution)