One more splitting problem

Problem Name:
One more splitting problem
Site:CodeForces
Links:
Tags: