Xay has recently learned graph theory, and he wants to test his skills!
He found a complete graph consisting of n vertices, where the value of edge (u,v) is au,v .
Xay really likes the concept of connected graphs, so he calls a subset of edges nice, iff the vertices are connected using these edges.
Xay defines the value of a set of edges to be (product of edge values)*(size of set).
Xay wants to know the total value of all nice subsets. Of course he solved it in 0.00001s, but he still wants to challenge you to find the answer!