Rosetta Problems

Gathering Children

https://atcoder.jp/contests/abc136/tasks/abc136_d