from collections import defaultdict n,m,x,y,z = map(int,input().split()) A = sorted(list(map(int,input().split()))) dif = 0 size = 0 for i in range(n)[::-1]: if A[i] >= x: dif += A[i]-z size += 1 A.pop() if size > m: print("Handicapped") exit() A = A[::-1] for i in range(len(A))[::-1]: if A[i] <= y: A.pop() n = len(A) dic = {} half = (n+1)//2 for i in range(1< m: continue count = 0 for j in range(half): if i >> j & 1: count += A[j]-z #print(dic) if count in dic: dic[count][s] += 1 else: dic[count] = [0]*(51) dic[count][s] = 1 for i in dic.keys(): for j in range(50): dic[i][j+1] += dic[i][j] A = A[::-1] ans = 0 for i in range(1< m: continue count = 0 for j in range(n-half): if i >> j & 1: count += z-A[j] if count-dif in dic: ans += dic[count-dif][m-s-size] if size == 0: ans -= 1 print(ans)