Short Random Problem

아직 제출이 없습니다시간 제한6초메모리 제한512 MB

문제

There are lots of things to do on this contest besides this problem, so let's make it quick.

You are given a tree consisting of nn vertices. Length of each edge is a real number chosen independently and uniformly at random between 00 and 11. Find the expected value of the diameter of such tree.

입력

The first line of input contains the only integer nn (2n1002 \leq n \leq 100), the number of vertices in the tree.

Each of the next n1n - 1 lines contains two integers u_iu\_i, v_iv\_i (1u_i,v_in1 \leq u\_i, v\_i \leq n, u_iv_iu\_i \neq v\_i) describing endpoints of ii-th edge.

출력

Output the answer as a value of a rational number modulo 109+710^9 + 7.

Formally, it is guaranteed that under given constraints the expected value of diameter of such random tree is always a rational number pq\frac{p}{q} (pp and qq are integer and coprime, qq is positive), such that qq is not divisible by 109+710^9 + 7, which is a prime number (in case somebody missed it).

Output such integer aa between 00 and 109+610^9 + 6 that paqp - aq is divisible by 109+710^9 + 7.

힌트

In the first sample case answer is 22 since each edge always belongs to the diameter adding 0.50.5 to diameter expected length.

In the second sample case expected length of diameter is 10160\frac{101}{60} that corresponds to value of a=283333337a = 283333337 (since 10160283333337=17000000119101 - 60 \cdot 283333337 = -17000000119 is divisible by 109+710^9 + 7).