**1 人解决**，2 人已尝试。

**3 份提交通过**，共有 8 份提交。

**9.7** EMB 奖励。

**单点时限: **5.0 sec

**内存限制: **256 MB

John has recently arrived in Romania for the South Eastern European Regional competitions. John has never been to Romania before so Romanians decided to organize sightseeing tour for him. This tour will include several Romanian cities and none of them will be visited more than once. John will start in one city and will visit some other cities according to a guide tour. At the end of the tour John will return to the starting point.

There are N cities numbered from 1 to N and M two-way roads in the country. Each road connects two different cities. Consider a sightseeing tour for John c_{1},c_{2}, …,c_{n}, where each c_{i} denotes a city in Romania. Then all c_{i} must be distinct, c_{i} and c_{i+1} must be connected by a road, where i=1,2,…,n-1, c_{n} and c_{1} must be connected by a road as well.

Being a odd person John would like to visit an odd number of cities. The organizers have drawn the plan of all possible tours with an odd number of cities.

Residents of the cities would like John to visit them. So if there is at least one tour passing through some city than this city is called lucky. Your task is to calculate the number of lucky cities in Romania.

The first line of input contains a single integer T – a number of test cases. Every test case starts with a line containing two integers separated by a single space – N and M.

Each of the next M lines will contain two integers ai and bi separated by a single space – the labels of cities that i-th road connects.

Output should contain T lines – answers for each of the test cases.

Constrains:

1 ≤ T ≤ 77,

0 ≤ N, M ≤ 100000 (10^{5}),

1 ≤ a_{i} < b_{i} ≤ N.

Input

1 7 7 1 5 3 5 3 7 1 7 6 7 4 7 4 6

Output

3

**1 人解决**，2 人已尝试。

**3 份提交通过**，共有 8 份提交。

**9.7** EMB 奖励。

**创建**: 10 年，11 月前.

**修改**: 3 年，1 月前.

**最后提交**: 9 年，11 月前.

题目标签