solve 500-div2-easy