#include using namespace std; #define int long long signed main(){ int N,M; cin>>N>>M; vector S(N); for(int i=0;i>S[i]; sort(S.rbegin(),S.rend()); int ans = 0; for(int i=0;i 0 || i == 0) ans += S[i]; cout<