Water Jugs#277

Water Jugs

1 second
128 megabytes
Easy (≈1000)

These days, Davud has left the house to fetch water but hasn't returned yet. He took empty jugs with him and needs to completely fill them with water and bring them back home. Davud can carry no more than jugs per trip since he only has two hands. Additionally, during one trip, he cannot carry more than a total of liters of water.

Davud is curious: what is the minimum number of trips needed to carry all the water jugs back home?

Input

The first line contains the integers and k~(1 \le n \le 10^5). The next line contains integers — the capacities of the water jugs in liters. All the integers are positive and do not exceed 10^9.

Output

Output the minimum number of trips needed for Davud. If it is not possible to carry all the water jugs, output Impossible.

Examples

Example 1

Loading
Loading