PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#GD0000133. Điều chỉnh hệ thống tưới nước (Watering System)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Điều chỉnh hệ thống tưới nước (Watering System)

Watering System

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

A pipe has nn holes with sizes sis_i. Only water from hole 11 is useful. You pour AA liters and may block any holes except the first. If open hole sizes sum to SS, hole 11 gets A⋅s1/SA\cdot s_1/S liters. Block as few holes as possible to give hole 11 at least BB liters.

Input

The first line contains n,A,Bn,A,B. The next line contains nn values sis_i.

Output

Print the minimum number of holes to block.

Subtasks

  • Subtask 1 (20 points): 1≤n≤201\le n\le 20; 1≤B≤A≤1041\le B\le A\le10^4; 1≤si≤1041\le s_i\le10^4.
  • Subtask 2 (30 points): 1≤n≤12001\le n\le 1200; 1≤B≤A≤1041\le B\le A\le10^4; 1≤si≤1041\le s_i\le10^4.
  • Subtask 3 (50 points): 1≤n≤1000001\le n\le 100000; 1≤B≤A≤1041\le B\le A\le10^4; 1≤si≤1041\le s_i\le10^4.

Examples

Input

4 10 3
2 2 2 2

Output

1

Explanation

Initially hole 11 receives 10⋅2/8=2.510\cdot2/8=2.5 liters. Blocking one other hole reduces the open-size sum to 66, yielding 20/6>320/6>3 liters. Thus one blocked hole suffices.