Rosetta Problems

Organizing the Bookshelf

https://atcoder.jp/contests/awc0119/tasks/awc0119_e