This problem is adapted from a problem in CodeForces, the premier Russian competitive coding problem collection and

Related Book For  answer-question
Posted Date: