n,m,x,y,z = map(int,input().split()) *a, = map(int,input().split()) from collections import defaultdict dp = defaultdict(int) dp[(0,0)] = 1 V = C = 0 for ai in a: if ai >= x: V += ai-z C += 1 elif ai > y: ndp = dp.copy() for (v,c),r in dp.items(): ndp[(v+ai-z,c+1)] += r dp = ndp print(sum(dp[(-V,i)] for i in range(m+1-C)) if C <= m else "Handicapped")