#include #include int c(const void*a,const void*b){return*(int*)a-*(int*)b;} int main(){ int m,a[1<<17],s=0,n=0;scanf("%d",&m); while(s