Solve AOJ2013