You are given an undirected simple graph containing exactly distinct nodes.
The nodes are numbered from to .
Suppose that is an edge of if and only if is a perfect square.
Please compute the number of the connected components of .
Input Format
Output Format
Constraints
For the th case, since , the node is connected to node .