Pyramid#10257

Pyramid

1 second
256 megabytes
Very easy

Vitaliy has boxes, the weight of -th box is a_i kg. He wants to construct a pyramid using these boxes. Exactly one other box can be placed on the top of each box, but the other box can also have a box on top, and so on.

Additionally, for each box its weight must be at least twice as large as the weight of all boxes on top of it. Find out the maximum number of boxes that can be in one pyramid.

Input

The first line contains a single integer (1 \le n \le 10^5 ) — the number of boxes.

The second line contains integers a_1, a_2, \ldots, a_n (1 \le a_i \le 10^9) — their weights.

Output

Output a single integer — the maximum possible number of boxes in one pyramid.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Note

In the first example, you can put a box with weight on top of the box with weight , because 1\cdot2 \le 2.

In the second example, you can put a box with weight on top of the box with weight , because 1\cdot2 \le 2. These two boxes can then be put on top of the box with weight , because (1+2)\cdot2 \le 6.

Scoring

Solutions that work if 1 \le n \le 1\,000 will receive of points.