Ensure that you are logged in and have the required permissions to access the test.
Given a graph having N vertices and an array A of M undirected edges, find the number of pairs of indices , in A, such that if we consider edges only from , then the graph is connected.
Input Format:
First line consists of two space separated integers denoting N and M.
Following M lines consists of two space separated u and v, denoting an undirected edge.
Output Format:
Print the required answer.
Constraints: