Ant Trip

Ant Trip

Description

给你无向图的N个点和M条边,保证这M条边都不同且不会存在同一点的自环边,现在问你至少要几笔才能所有边都画一遍.(一笔画的时候笔不离开纸)

Format

Input

多组数据,每组数据用空行隔开。对于每组数据:
第一行两个整数N(1<=N<=100 000),M(0<=M<=200 000)表示点数和边数。接下去M行每行两个整数a,b(1<=a,b<=N),表示a,b之间有一条边。

Output

对于每组数据,输出结果。

Sample 1

Input

3 3
1 2
2 3
1 3

4 2
1 2
3 4

Output

1
2

【hdu上的样例解释,考验你英语能力的时刻来了!O(∩_∩)O】
New ~~~ Notice: if there are no road connecting one town ,tony may forget about the town.
In sample 1,tony and his friends just form one group,they can start at either town 1,2,or 3.
In sample 2,tony and his friends must form two group.

Limitation

1s, 32MiB for each test case.

Source

Hdu3018