Solve AOJ2253