An impassioned circulation of affection

Problem Name:
An impassioned circulation of affection
Site:CodeForces
Links:
Tags:
Problem setters: