Rewind#801

Rewind

1 second
256 megabytes
Very easy

During the broadcast of the concert "Rewind," entrepreneur decided to start a cassette production business. He has cassettes, each with a duration of minutes, and wants to record as many songs as possible on them. There are songs available, listed in order from to , each with a known duration: , , ..., . The entrepreneur can perform one of the following actions:

Determine the maximum number of songs that the entrepreneur can record on the cassettes.

Input

The first line contains the number (M \leq 100).

The second line contains (D \leq 300).

The third line contains (N \leq 300).

The fourth line lists the durations of the songs: , , ..., . Each L(i) \leq D.

Output

Output a single number representing the maximum number of songs that can be recorded.

Examples

Example 1

Loading
Loading