#GD0000004. Luộc trứng (Boiled Eggs)

Luộc trứng (Boiled Eggs)

Boiled Eggs

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

There are nn eggs with weights wiw_i. At most PP eggs may be chosen and their total weight must not exceed QQ. Find the maximum possible number of chosen eggs.

Input

The first line contains n,P,Qn,P,Q. The second line contains nn weights wiw_i.

Output

Print the maximum number of eggs that can be chosen.

Subtasks

General constraints:

  • 1≤n,P,Q≤301 \le n,P,Q \le 30.

  • 1≤wi≤101 \le w_i \le 10.

  • Subtask 1 (20 points): n≤8n \le 8

  • Subtask 2 (30 points): n≤15n \le 15

  • Subtask 3 (50 points): No additional constraints.

Examples

Input

3 2 10
1 2 3

Output

2

Explanation

The eggs of weights 11 and 22 can be selected. The count limit P=2P=2 prevents selecting a third egg.