#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include using namespace std; #define int int signed main(){ int N; cin>>N; unordered_map s; vector S(N); for(int i=0;i>S[i]; s[S[i]]++; } vector T=S; for(int i=0;i