Mr. Nine was roaming casually in the Parallel Universe in his mid-semester breaks, suddenly he comes across a mango tree. He loves mangoes so he decides to pluck some mangoes from it but suddenly a fairy appears and tells him to solve a complex problem to get the mangoes. She tells him that there are nodes in the tree and he is given two nodes and . Now she asks him how many pairs of nodes are present in tree in which shortest path between them does not contain node after node (for example u → a → b → v is also not allowed where and are two different nodes). If he is able to tell the correct number of pairs of nodes then he will get all the mangoes, but he is unable to do so and needs your help.
The first line consists of integers n~(1 \le n \le 300005), and . The following n - 1 lines consist of two integers and denoting there is an edge between vertices and y~(1 \le x, y \le n).
Print the total number of such pairs of nodes.

There are possible pairs that can be chosen:
: his route would be 1 → 2
: his route would be 2 → 3
: his route would be 3 → 2
: his route would be 2 → 1
: his route would be 3 → 2 → 1
He cannot choose as a pair because the shortest path between them will be 1 → 2 → 3 and this is not acceptable as it contains v = 3 after u = 1 and thus it is not acceptable.
Example 1