import sys input = sys.stdin.readline N,M,X,Y,Z=map(int,input().split()) A=list(map(int,input().split())) B=[] C=[] for a in A: if a>=X: C.append(a) elif a>Y: B.append(a) if len(C)>M: print("Handicapped") exit() B=sorted(B) B=[b-Z for b in B] C=[c-Z for c in C] S=sum(C) from collections import defaultdict DP=defaultdict(int) DP[(0,0)]=1 import copy for b in B: NDP=copy.deepcopy(DP) for d,k in DP: if k+1<=M: NDP[(d+b,k+1)]+=DP[d,k] DP=NDP ANS=0 for i,j in DP: if i==-S and j!=0: ANS+=DP[(i,j)] print(ANS)