AOJ 10017: Accepted