AT_abc441_c [ABC441C] Sake or Water

Description

There are $ N $ cups, each containing a colorless and transparent liquid. Specifically, the $ i $ -th $ (1\leq i\leq N) $ cup contains $ A_i $ ml of liquid. It is known that exactly $ K $ of these cups contain sake (rice wine), and the rest contain water. However, it is not known which cups contain sake. Takahashi can choose some (one or more) cups and drink all the liquid in them. Find the minimum number of cups he needs to choose to ensure he drinks at least $ X $ ml of sake, regardless of which cups contain sake. If such a choice is impossible, print $ -1 $ .

Input Format

The input is given from Standard Input in the following format: > $ N $ $ K $ $ X $ $ A_1 $ $ A_2 $ $ \ldots $ $ A_N $

Output Format

Print the minimum number of cups Takahashi needs to choose to satisfy the condition. If such a choice is impossible, print $ -1 $ .

Explanation/Hint

### Sample Explanation 1 Consider the case where Takahashi chooses the first and third cups and drinks them. Two out of the three cups contain sake, so the following three cases are possible: - If the first and second cups contain sake He drinks $ 10 $ ml of sake and $ 8 $ ml of water. - If the first and third cups contain sake He drinks $ 18 $ ml of sake. - If the second and third cups contain sake He drinks $ 8 $ ml of sake and $ 10 $ ml of water. Thus, in all cases, he can drink at least $ 5 $ ml of sake. On the other hand, it is impossible to satisfy the condition by choosing only one cup without knowing which cups contain sake. Therefore, print $ 2 $ . ### Sample Explanation 2 If the first cup contained sake, it is impossible to drink $ 8 $ ml or more of sake no matter which cups are chosen. Therefore, print $ -1 $ . ### Constraints - $ 1 \leq K \leq N \leq 3\times 10^5 $ - $ 1 \leq A_i \leq 10^9 $ - $ 1 \leq X \leq 3\times 10^{14} $ - All input values are integers.