from collections import defaultdict N,M,X,Y,Z=map(int,input().split()) A=list(map(int,input().split())) delete_like=delete_count=0 hold_like=hold_count=0 B=[] for a in A: if a<=Y: delete_like+=a delete_count+=1 elif a>=X: hold_like+=a hold_count+=1 else: B.append(a-Z) if hold_count>M: exit(print("Handicapped")) DP=[[defaultdict(int) for _ in range(len(B)+2)] for _ in range(len(B)+1)] DP[0][0][0]=1 for i,b in enumerate(B,1): D=DP[i]; E=DP[i-1] for k in range(len(B)+1): e=E[k] d1=D[k] d2=D[k+1] for s in DP[i-1][k]: d1[s]+=e[s] d2[s+b]+=e[s] U=hold_like-hold_count*Z Ans=0 for i in range(M-hold_count+1): Ans+=DP[-1][i][-U] if U==0: Ans-=1 print(Ans)