Painting the Ribbon

Problem Name:
Painting the Ribbon
Site:CodeForces
Links:
Tags:
Problem setters: