solve AOJ0121