import sys input = sys.stdin.readline from collections import * N, M, X, Y, Z = map(int, input().split()) A = list(map(int, input().split())) cnt = 0 for i in range(N): if A[i]>=X: cnt += 1 if cnt>M: print('Handicapped') exit() B = [] already_v, already_c = 0, 0 for i in range(N): if A[i]>=X: already_v += A[i] already_c += 1 elif A[i]>Y: B.append(A[i]) n = len(B) n1 = n//2 n2 = n-n//2 d = defaultdict(lambda: defaultdict(int)) for S in range(1<>i)&1: if B[i]>Y: v += B[i] c += 1 else: if B[i]>=X: v += B[i] c += 1 d[c][v] += 1 ans = 0 for S in range(1<>i)&1: if B[n1+i]>Y: v += B[n1+i] c += 1 else: if B[n1+i]>=X: v += B[n1+i] c += 1 for i in range(n1+1): if c+i+already_c>0 and c+i+already_c<=M: ans += d[i][(c+i+already_c)*Z-v-already_v] print(ans)