Now Mr.I has an array $a$ consisting of $n$ integers.
He now wants to know how many triples $(i, j, k)$ satisfy $i<j<k$ and $a_i * a_j * a_k$ is a square number .
The definition of a square number is a number that can be expressed as the product of two identical integers.
For example, 1, 4, 9, 16, 25, and 36 are square numbers, but 2, 3, and 6 are not.