Arranging Cats

Problem Name:
Arranging Cats
Site:CodeForces
Links:
Tags:
Problem setters: