Solved AOJ 2424