import sys from sys import stdin N,M,X,Y,Z = map(int,stdin.readline().split()) A = list(map(int,stdin.readline().split())) a = A always = [] lis = [] for i in A: if i <= Y: pass elif i < X: lis.append(i) else: always.append(i) if len(always) > M: print ("Handicapped") sys.exit() sl = sum(lis) dp = [ [0] * (sl+1) for i in range(len(lis)+1)] dp[0][0] = 1 for i in range(len(lis)): for x in range(len(lis),-1,-1): for y in range(sl,-1,-1): if x+1 <= len(lis) and y+lis[i] <= sl: dp[x+1][y+lis[i]] += dp[x][y] ans = 0 asum = sum(always) for x in range(len(lis)+1): for y in range(sl+1): if y+asum == Z * (x+len(always)) and y+asum <= M: ans += dp[x][y] print (ans)