#include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin>>n; int x;vectorv; for(int i=0;i>x; v.push_back(x); } sort(v.rbegin(),v.rend());long long int s=0;int y; for(int i=0;i