You are given an undirected graph A, which has n vertices and m edges.
There is another undirected graph B, which has n vertices and n * (n - 1) / 2 - m edges. For each pair of vertices u, v there is an edge between them if and only if they are not connected by an edge in graph A.
Find the number of connected components in graph B and the size of each component.
Input Format:
Output Format:
Constraints-
In the first test case, in graph B there are 2 edges. First edge is between 1 and 2, and second edge is between 3 and 4. So, there are 2 connected components containing 2 vertices each.
In the second test case, there is only one edge in graph A between 1 and 2. So, vertices 1 and 2 donot have an edge in graph B. But 1 and 2 are connected to 3 in graph B. So, all 3 vertices are in same connected component.