#P1067E. Random Forest Rank
Random Forest Rank
No submission language available for this problem.
Description
Let's define rank of undirected graph as rank of its adjacency matrix in .
Given a tree. Each edge of this tree will be deleted with probability , all these deletions are independent. Let be the expected rank of resulting forest. Find modulo (it is easy to show that is an integer).
First line of input contains () — number of vertices.
Next lines contains two integers () — indices of vertices connected by edge.
It is guaranteed that given graph is a tree.
Print one integer — answer to the problem.
Input
First line of input contains () — number of vertices.
Next lines contains two integers () — indices of vertices connected by edge.
It is guaranteed that given graph is a tree.
Output
Print one integer — answer to the problem.