#include using namespace std; int main(){ int N,K; cin >> N >> K; vector A(N); for(int i=0;i> A[i]; sort(A.rbegin(),A.rend()); if(A[0] < 0) cout << A[0] << endl; else{ long long int ans = 0; for(int i=0;i