Olympiad and the Internet#226

Olympiad and the Internet

1 second
64 megabytes
Easy

At the All-Ukrainian Olympiad, there are participants in one of the dormitory sections, each with their own laptop. In the corridor, there is only one working power socket, but the participants have power strips, and each power strip can accommodate A_i additional devices.

Determine the minimal number of participants who cannot maintain a constant network connection.

Input

The first line contains and — the number of Olympiad participants and the number of available power strips, respectively.

The second line contains non-negative integers A_1, A_2, \ldots, A_K, where A_i is the number of additional devices each power strip can accommodate. All input values do not exceed .

Output

Output a single integer — the minimal number of participants who cannot maintain a constant network connection.

Examples

Example 1

Loading
Loading