#include using namespace std; int main(){ mt19937 mt(chrono::steady_clock::now().time_since_epoch().count()); int N; cin >> N; vector hate(N),rr(N); for(auto &i:hate) cin >> i; for(int i = 0; i < N;i++)rr[i] = i; int T =1000; bool found = false; while(T--){ shuffle(rr.begin(),rr.end(),mt); int i = 0; for( i = 0; i