Given are trees T_1 and T_2. Each tree has n vertices numbered from 1 through n. Let d(v,u,T) denote the number of edges on the path between vertices v and u in tree T. Calculate the following sum:
∑_1≤u<v≤n(d(v,u,T_1)+d(v,u,T_2))2.
As the answer may be large, find it modulo 232.
The first line contains one integer n: the number of vertices in each tree (1≤n≤100,000).
Each of the next n−1 lines contains two integers, u and v, denoting an edge between vertices u and v in tree T_1 (1≤u,v≤n).
Each of the last n−1 lines contains two integers, u and v, denoting an edge between vertices u and v in tree T_2 (1≤u,v≤n).
Print the answer modulo 232.