Rosetta Problems

Organizing the Bookshelf

https://atcoder.jp/contests/awc0025/tasks/awc0025_e