#include int cmp(const void *a,const void *b){ return *(int*)a-*(int*)b; } int main(){ int a[1000],n,i; scanf("%d",&n); for(i=0;i