Rosetta Problems

Child to Parent

https://atcoder.jp/contests/agc063/tasks/agc063_e