#include #include using namespace std; int main() { int n; cin>>n; for (int i=0;i>k; vector a(k); for (int j=0;j>a.at(j); } sort(a.begin(), a.end(), greater()); for (int j=0;j