// I SELL YOU...! #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using P = pair; using TP = tuple; void init_io(){ cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(18); } signed main(){ init_io(); ll n,k; cin >> n >> k; ll sum=0; vector a(n); for(int i=0;i> a[i]; } sort(a.begin(),a.end(),greater()); sum += a[0]; for(int i=1;i0) sum += a[i]; } cout << sum << endl; }