The infinite festival

Problem Name:
The infinite festival
Site:CodeForces
Links:
Tags: