Descriptions:

Tree Generator™

CodeForces - 1150E