405133: GYM101804 F First Day
Description
IME students are going to their first military field training. They will be placed in certain areas, individually, but a student in a certain area may be able to see other areas, so, in order to avoid distractions, no student should be able to see any other.
Earlier, for field reconnaissance, soldiers were placed in all areas. During that, two IMPORTANT things were noticed:
- The sum of the number soldiers that each soldier could see is $$$2 \times n-2$$$, where n is the number of soldiers;
- If an officer says to any soldier to raise his hand and to all others to only raise theirs if they see another soldier with their hand already raised, eventually all soldiers will have raised their hand.
IME instructors are asking you to help them to find out how many students at most can be placed at the same time. To do so, they will give you which areas can be seen from each area.
InputThe first line contains two integers, $$$n$$$ and $$$m$$$ ($$$1 \leq n \leq 10^5$$$, $$$0 \leq m \leq min(10^5, n\times(n - 1)/2)$$$) — the number of areas and the number of relations.
The next $$$m$$$ lines contains the relations between the areas. Each line has two integers, $$$a_i$$$ and $$$a_j$$$ ($$$1 \leq a_i, a_j \leq n$$$), meaning that students in the areas $$$a_i$$$ and $$$a_j$$$ can see each other.
OutputOutput the number of students that can do the activity at the same time without seeing others.
ExampleInput5 4Output
1 2
1 3
2 4
2 5
3