Gardener And Tree Codeforces, A tree is an undirected connected graph in which there are no cycles.