Is it a tree

Problem Name:
Is it a tree
Site:Spoj
Links:
Tags:
Problem setters: