Rosetta Problems

Telephone Game of Messages

https://atcoder.jp/contests/awc0030/tasks/awc0030_d