Rosetta Problems

Connectivity 2

https://atcoder.jp/contests/aalc001/tasks/aalc001_v