from math import gcd def lcm(x,y): return x*y//gcd(x,y) N,L,H=map(int,input().split()) C=list(map(int,input().split())) ANS=0 for i in range(1,1<