#include #include using namespace std; int N; main() { cin>>N; vectorcnt(N,0); vector >E; for(int i=0;it)break; t-=cnt[i]; for(int j=0;je:E)cout<