#include using namespace std; #ifdef WIN32 #define putchar_unlocked putchar // Only works in Windows #endif // WIN32 void fastscan(int &number) { bool negative = false; register int c; number = 0; c = getchar(); if (c=='-') { negative = true; c = getchar(); } for (; (c>47 && c<58); c=getchar()) number = number *10 + c - 48; // if scanned input has a negative sign, negate the // value of the input number if (negative) number *= -1; } int n,p[1<<22]; int main () { //freopen("shuffle.in","r", stdin); //freopen("shuffle.out","w", stdout); fastscan(n); for(int i=0;i