#include #include #include using namespace std; int max(int a, int b) { int x = (a > b) ? a : b; return x; } int min(int a, int b) { int x = (a < b) ? a : b; return x; } int main() { int h, n, ans; bool judge = true; cin >> h >> n; vector v(n - 1); for (int i = 0; i < n - 1; i++) cin >> v[i]; sort(v.begin(), v.end()); for (int i = 0; i < n - 1; i++) { if (h