Solve AOJ2015
Solve AOJ1240