You are given a DAG N with N nodes and M edges. You are building a graph G^. G^ contains the same vertex set as G and all edges are available in G. Moreover,
For G^, find the maximum possible size of S where S is a set of vertices in G^ such that there exists an edge between every unordered pair of vertex present in S.
The meaning of unordered is that there must exist an edge between every pair of vertex (u,v), that is, either u - > v or v - > u must be in an edge set.
Input format
Output format
Print the maximum possible size of set S.
Constraints
1≤N≤2000001≤M≤1000000
G^ has following edges.
1 -> 2
2 -> 3
1 -> 3
Take S ={1,2,3}. It is a valid choice as every pair of vertex has an edge between them.