Anton and Tree

CodeForces - 734E