Beauty and The Tree

Problem Name:
Beauty and The Tree
Site:CodeForces
Links:
Tags:
Problem setters: