A Certain Magical Party

Problem Name:
A Certain Magical Party
Site:CodeForces
Links:
Tags:
Problem setters: