import java.util.Scanner object Main extends App { val sc = new Scanner(System.in) val n, m, x, y, z = sc.nextInt val a = List.fill(n)(sc.nextInt).filter(_ > y) val init = a.filter(_ >= x).sum val init_use = a.count(_ >= x) if (init_use > m) { println("Handicapped") } else { val b = a.filter(_ < x) val dp = Array.fill(b.size + 1, n * 50 + 1)(0) dp(0)(0) = 1 for (bnum <- b; prev_used <- b.indices.reverse; prev_sum <- 0 to m * 50 - bnum) { dp(prev_used + 1)(prev_sum + bnum) += dp(prev_used )(prev_sum) } // dp.foreach(s => Console.err.println(s.mkString(" "))) val ans = (1 to m - init_use).map(i => if (z * (i + init_use) < init || i >= dp.size) { 0l } else { dp(i)(z * (i + init_use) - init).toLong } ).sum println(ans) } }