Rosetta Problems

金髪の少女 (Blonde girls)

https://atcoder.jp/contests/tkppc/tasks/tkppc2015_b