The system oflowcost airlinesOlympAirwayswasdesignedsothatat anyairportwhichis served bythe airlinecouldflytoany otherairport, using,perhaps morethanoneflight.Eachflightconnects thetwo airportsand runs inboth directions.
There is a problem that some flights to certain times can not be executed due to bad weather conditions. Thus it is likely that the client can not fly from airport A to B, using only aircraft to OlympAirways. To investigate such situations the research department of the company introduced the concept of vulnerability between a pair of airports A and B. This number equals the number of airline flights, cancellation of any of them (provided that all other flights performed in the usual way) would make it impossible trip to the airport from the airport B to A.
Write a programthataccording to informationon allroutesthat runairline todeterminethe sum ofthe vulnerability ofcommunicationsbetweenallpairs ofairports.
The firstline containsan integerN (1 ≤ N ≤ 100) – the number ofairportsserved byairlines.The secondlinecontainsan integerM (1 ≤ M ≤ 4950) – the number of flightsthatrunairline.Eachofthe followingMlinesdetermines theflight, whichis representedby a pairof integersfrom1toN - numberof airports, whichitconnects.
Print one integer -the totalnumber ofvulnerabilitiesbetweenalldifferentpairs ofairportsA andB,suchthat thenumber ofAis less thanthe numberofB.
5 5 1 2 4 2 4 5 3 2 3 1