from bisect import * N,M,X,Y,Z = map(int,input().split()) A = list(map(int,input().split())) y = bisect_right(A,Y) x = bisect_left(A,X) if N-x > M: print("Handicapped") exit(0) s = 2500 dp = [[0]*(s*2+100) for i in range(M+1)] dp[0][0] = 1 for a in A: nxt = [[0]*(s*2+100) for i in range(M+1)] for i in range(M+1): for j in range(-s,s+1): if i+1 <= M and Y < a and -s <= j+a-Z <= s: nxt[i+1][j+a-Z] += dp[i][j] if a < X: nxt[i][j] += dp[i][j] dp = nxt ans = 0 for i in range(1,M+1): ans += dp[i][0] print(ans)