281_E. Game on Tree_36712
Momiji has got a rooted tree, consisting of n nodes. The tree nodes are numbered by integers from 1 to n. The root has number 1. Momiji decided to play a game on this tree.

The game consists of several steps. On each step, Momiji chooses one of the remaining tree nodes (let's denote it by v) and removes all the subtree nodes with the root in node v from the tree. Node v gets deleted as well. The game finishes when the tree has no nodes left. In other words, the game finishes after the step that chooses the node number 1.

Each time Momiji chooses a new node uniformly among all the remaining nodes. Your task is to find the expectation of the number of steps in the described game.

Input

The first line contains integer n (1 ≤ n ≤ 105) — the number of nodes in the tree. The next n - 1 lines contain the tree edges. The i-th line contains integers ai, bi (1 ≤ ai, bi ≤ n; ai ≠ bi) — the numbers of the nodes that are connected by the i-th edge.

It is guaranteed that the given graph is a tree.

Output

Print a single real number — the expectation of the number of steps in the described game.

The answer will be considered correct if the absolute or relative error doesn't exceed 10 - 6.

Examples

Input

2
1 2


Output

1.50000000000000000000


Input

3
1 2
1 3


Output

2.00000000000000000000

Note

In the first sample, there are two cases. One is directly remove the root and another is remove the root after one step. Thus the expected steps are: 

1 × (1 / 2) + 2 × (1 / 2) = 1.5

In the second sample, things get more complex. There are two cases that reduce to the first sample, and one case cleaned at once. Thus the expected steps are: 

1 × (1 / 3) + (1 + 1.5) × (2 / 3) = (1 / 3) + (5 / 3) = 2
n = input()
e = [[] for _ in range(n)]
for _ in range(n - 1):
	a, b = map(int, raw_input().split())
	e[a - 1].append(b - 1)
	e[b - 1].append(a - 1)
d = [0] * n
d[0] = 1
q = [0]
for u in q:
	for v in e[u]:
		if not d[v]:
			d[v] = d[u] + 1
			q.append(v)
print sum(1. / x for x in d)
2
1 2
 3
1 2
1 3
 6
1 3
2 4
5 6
3 6
5 4
 10
1 2
2 3
3 4
1 5
2 6
6 7
4 8
6 9
9 10
 3
1 2
2 3
 10
1 2
2 3
3 4
1 5
2 6
6 7
4 8
5 9
9 10
 10
1 2
2 3
3 4
1 5
4 6
6 7
4 8
5 9
9 10
 10
1 2
2 3
3 4
1 5
3 6
6 7
4 8
5 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
10 7
4 8
6 9
9 10
 10
1 2
2 4
3 4
1 5
2 6
6 7
3 8
5 9
9 10
 6
2 3
2 1
4 6
3 6
5 4
 10
1 3
2 3
3 4
1 5
4 6
6 7
4 8
5 9
9 10
 10
1 3
2 3
3 4
1 5
4 6
6 7
4 8
6 9
9 10
 10
1 4
2 3
3 7
2 5
2 6
9 7
4 8
1 9
2 10
 10
1 3
2 6
3 4
1 5
3 6
6 7
4 8
5 9
9 10
 10
1 4
2 3
3 4
2 7
2 6
9 7
4 8
5 9
9 10
 10
1 2
2 3
3 6
1 5
4 6
6 7
7 8
5 9
9 10
 10
1 3
2 3
1 4
1 5
4 6
6 7
4 8
5 9
9 10
 10
1 2
2 3
3 4
2 5
3 6
6 7
4 8
5 9
6 10
 10
1 4
2 4
3 7
2 5
2 6
1 7
4 8
5 9
2 10
 10
1 4
2 4
3 7
2 5
2 6
1 7
7 8
5 9
2 10
 3
1 3
2 3
 10
1 2
2 3
3 8
2 5
2 6
6 7
4 8
6 9
9 10
 10
1 4
2 3
3 4
1 5
2 6
9 7
4 8
5 10
9 10
 10
1 2
2 3
3 4
1 5
3 6
6 7
2 8
6 9
9 10
 6
1 3
2 1
5 6
2 6
5 4
 10
1 2
2 3
6 4
1 5
2 9
6 7
4 8
6 9
9 10
 10
1 2
2 4
3 4
1 5
2 6
6 7
7 8
5 9
9 10

1.5000000000
 2.0000000000
 2.4500000000
 3.8166666667
 1.833333333
 3.950000000
 3.733333333
 3.816666667
 3.650000000
 1.500000000
 4.083333333
 3.269047619
 2.783333333
 3.676190476
 4.000000000
 3.600000000
 3.900000000
 3.326190476
 2.450000000
 3.616666667
 3.850000000
 2.616666667
 3.459523810
 2.533333333
 4.333333333
 3.516666667
 3.426190476
 3.483333333
 3.866666667
 3.233333333
 3.950000000
 4.083333333
 3.950000000
 3.950000000
 4.083333333
 3.816666667
 3.733333333
 3.950000000
 2.450000000
 3.950000000
 3.733333333
 3.616666667
 4.000000000
 3.269047619
 3.733333333
 4.333333333
 3.516666667
 3.950000000
 3.950000000
 1.833333333
 3.650000000
 3.900000000
 3.733333333
 2.783333333
 3.733333333
 3.950000000
