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