Rosetta Problems

Organizing the Network

https://atcoder.jp/contests/awc0168/tasks/awc0168_c