Question 362973
Is this the complete statement of the problem?  Look, for example, at problem 131506, which is almost the identical problem.  It was solved there.