#include #include using namespace std; main(){ int n,a[1<<17],c=0,s=0,i;cin>>n; for(i=0;i>a[i]; sort(a,a+n); a[n++]=1e9+7; for(i=0;i