Solve AOJ2001