After a seemingly endless mob war, many of the caporegimes in your family are killed. Each capo leads a crew of soldiers, but now that these capos are dead, their soldiers are out of control. As the consigliere of your family, it is your job to hire new capos to lead the riotous soldiers. The soldiers you're dealing with are not gentle people. Soldiers often hold grudges with each other. As a result, certain soldiers cannot be placed in the same crew.
There are
Input Specification
The first line of input will contain two integers:
The next
Output Specification
The first line of output should contain an integer, the minimum number
of crews required to group the soldiers.
Each remaining line represents a separate crew. For every crew, you must
output the soldiers that it contains. You may output the groups/soldiers
in any order.
Sample Input
5 7
1 2
1 5
2 4
2 5
3 4
3 5
4 5
Sample Output
3
1 4
2 3
5
Explanation
Soldiers
Comments