#include using namespace std; using ll = long long; using vll=vector; templateT get(){T r;cin>>r;return r;} templatevector get_v(ll n){vector v;for(int i=0;i!=n;i++){v.push_back(get());};return v;} templatevoid show_v(vector v){ for(ll i=0;i!=v.size()-1;i++) cout<>n>>k; vll a=get_v(n); sort(a.begin(),a.end(),greater()); ll sum=0; for(ll i=0;i