Yet Another Dividing into Teams

Problem Name:
Yet Another Dividing into Teams
Site:CodeForces
Links:
Tags:
Problem setters: