CF967B.Watering System

传统题 时间 2000 ms 内存 256 MiB 5 尝试 1 已通过 1 标签

Watering System

Arkady wants to water his only flower. Unfortunately, he has a very poor watering system that was designed for nn flowers and so it looks like a pipe with nn holes. Arkady can only use the water that flows from the first hole.

Arkady can block some of the holes, and then pour AA liters of water into the pipe. After that, the water will flow out from the non-blocked holes proportionally to their sizes s1,s2,,sns_1, s_2, \ldots, s_n. In other words, if the sum of sizes of non-blocked holes is SS, and the ii-th hole is not blocked, siAS\frac{s_i \cdot A}{S} liters of water will flow out of it.

What is the minimum number of holes Arkady should block to make at least BB liters of water flow out of the first hole?

Input

The first line contains three integers nn, AA, BB (1n1000001 \le n \le 100\,000, 1BA1041 \le B \le A \le 10^4) — the number of holes, the volume of water Arkady will pour into the system, and the volume he wants to get out of the first hole.

The second line contains nn integers s1,s2,,sns_1, s_2, \ldots, s_n (1si1041 \le s_i \le 10^4) — the sizes of the holes.

Output

Print a single integer — the number of holes Arkady should block.

Note

In the first example Arkady should block at least one hole. After that, 10263.333\frac{10 \cdot 2}{6} \approx 3.333 liters of water will flow out of the first hole, and that suits Arkady.

In the second example even without blocking any hole, 80310=24\frac{80 \cdot 3}{10} = 24 liters will flow out of the first hole, that is not less than 2020.

In the third example Arkady has to block all holes except the first to make all water flow out of the first hole.

Samples

4 10 3
2 2 2 2
1
4 80 20
3 2 1 4
0
5 10 10
1000 1 1 1 1
4

在线编程 IDE

建议全屏模式获得最佳体验