n,m,x,y,z=map(int,input().split()) a=list(map(int,input().split())) cnt1=0 cnt2=0 b=[] for i in range(n): if a[i]>=x: cnt1+=a[i] cnt2+=1 elif a[i]>y: b.append(a[i]) dp=[[0]*(5000) for _ in range(len(b)+1)] dp[0][0]=1 for i in range(len(b)): c=b[i] for j in range(i,-1,-1): for k in range(5000): if dp[j][k]!=0: dp[j+1][k+c]+=dp[j][k] if cnt2>m: print("Handicapped") else: ans=0 for i in range(min(len(b)+1,m-cnt2+1)): if z*(cnt2+i)-cnt1>=0 and cnt2+i>0: ans+=dp[i][z*(cnt2+i)-cnt1] print(ans)