Variable, or There and Back Again

CodeForces - 164A