Mr. Nine and his love for mangoes
Mr.Nine was roaming casually in the Parralel 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 trees and he is given two nodes and . Now she asks him how many pair of nodes are present in tree in which shortest path between them does not contain node after node (for example is also not allowed where and are two different nodes). If he is able to tell the correct number of pair of nodes then he will get all the mangoes,but he is unable to do and needs your help.
Input
The first line consists of integers , and . The following lines consist of two integers and denoting there is an edge between vertices and .
Output
Find out the total number of pair of nodes.
Examples
There are possible pairs that can be chosen:
: his route would be
: his route would be
: his route would be
: his route would be
: his route would be
He cannot choose as a pair because the shortest path between them will be and this is not acceptable as it contains after and thus it is not acceptable.