#include using namespace std; int main() { int n; long m=0; cin>>n; int a[n]; for(int i=0; i>a[i]; } sort(a, a+n); reverse(a, a+n); for(int i=0; i