Timofey and a tree

CodeForces - 763A