solve cf/466/d