Rosetta Problems

誘拐 2 (Abduction 2)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/659