You are given an undirected tree with N vertices, labeled with distinct integers from 1 to N.
Let's denote dist(i,,j) be the length of the shortest path between two vertices i and j on the tree.
Find ∑_1≤i<j≤Ngcd(i,,j,,dist(i,,j)).
gcd(a,b,c) means the greatest common divisor of a, b, and c.
The first line contains an integer N.
Each of the following N−1 lines contains two space-separated integers u_i and v_i (1≤i≤N−1), which means that there is an edge between them.
Print the value of Σ_1≤i<j≤Ngcd(i, j, dist(i,j)).