Rosetta Problems

Organizing the Bookshelf

https://atcoder.jp/contests/awc0109/tasks/awc0109_a