solution for NO.172