A Growing Tree

Problem Name:
A Growing Tree
Site:CodeForces
Links:
Tags:
Problem setters: