Exercise Route#10339

Exercise Route

Bessie the cow realizes that she needs to exercise more to stay in good shape. She needs your help choosing routes around the farm that she could use for her morning jog.

The farm consists of fields, conveniently numbered from to and connected by bidirectional trails. Being creatures of habit, the cows use one particular set of n - 1 trails for all of their daily movement between fields — they call these trails "standard". It is possible to travel from any field to any other field using only standard trails.

To keep her morning jog interesting, Bessie decides to choose a route that includes some non-standard trails. However, since she is so used to the standard trails, she does not want to use too many non-standard ones. After some thought, she decides that a good route is a simple cycle (a route that returns to its starting point and does not visit any field more than once) that contains exactly two non-standard trails.

Help Bessie count the number of good routes. Two routes are considered the same if they consist of the same set of trails.

Input

The first line contains two integers and m~(1 \le n \le 2 \cdot 10^5, n - 1 \le m \le 2 \cdot 10^5) — the number of fields and the number of trails.

Each of the next lines contains two integers a_i and b_i~(1 \le a_i, b_i \le n) — the endpoints of a trail. The first n - 1 of these trails are the standard ones.

Output

Print one integer — the number of good routes.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading