Rosetta Problems

Organizing the Bookshelf

https://atcoder.jp/contests/awc0017/tasks/awc0017_a