#include #include #include #include #include using namespace std; bool wayToSort(int i, int j) { return i > j; } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long int n,i,j,k,l,s; cin>>n; vector c(n); for(i=0;i>c[i]; std::sort(c.begin(),c.end(), wayToSort); s=0; for(i=0;i