#include using namespace std; using Int = long long; //INSERT ABOVE HERE signed main(){ Int n; cin>>n; vector y(n); for(Int i=0;i>y[i]; sort(y.begin(),y.end()); Int ans=0; for(Int i=0;i