#include using namespace std; #include #include #include #include #include int main(){ int a, b; int count=0; cin >> a >> b; vector vec(a); for(int i=0;i> vec.at(i); } sort(vec.rbegin(),vec.rend()); for(int i=0;i0&&c>count){ count = c; break; } } cout << count; }