CodeForces problem solution