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:
Record the next song on the current cassette (if it fits) or skip it;
If the song does not fit on the current cassette, he can either skip the song or start recording it on a new cassette. In this case, the old cassette is set aside and can no longer be used.
Determine the maximum number of songs that the entrepreneur can record on the cassettes.
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 a single number representing the maximum number of songs that can be recorded.
Example 1