597. It's not easy to divide the money