#include #include using std::sort; int main() { int n,m; scanf("%d",&n); int a[n],*p; for(int i=0;i