Copil Copac Draws Trees(Codeforces Round 875 (Div. 1))
CopilCopacisgivenalistofn−1n-1n−1edgesdescribingatreeofnnnvertices.Hedecidestodrawitusingthefollowingalgorithm:Step000:Drawsthefirstvertex(vertex111).Gotostep111.Step111:Foreveryedgeintheinput,inorder