q(const void *a,const void *b){return *(int*)a-*(int*)b;}main(n,i,s){int a[100000];s=0;scanf("%d",&n);for(i=0;i