#include "testlib.h" #include #include using namespace std; using ll = long long; const int Nmin = 2; const int Nmax = 200'000; int main(){ registerValidation(); int N = inf.readInt(Nmin, Nmax); inf.readEoln(); atcoder::dsu uf(N); for (int i=0; i