You are given an undirected simple graph G containing exactly n distinct nodes.
The nodes are numbered from 1 to n.
Suppose that (u,v) is an edge of G if and only if u⋅v is a perfect square.
Please compute the number of the connected components of G.
Input Format
Output Format
Constraints
For the 4th case, since 1⋅4=4=22, the node 4 is connected to node 1.