#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n ; cin >> n ; vector< long long int > v(n) ; for( int i=0 ;i> v[i] ; sort(v.rbegin(),v.rend()) ; long long int ans=0 ; long long int y=1 ; for( int i=0 ; i