Given an array \(A\) of length \(N\). Find the number of ordered pairs \((i, j)\) which satisfy the given condition
Input format
Output format
Print the number of ordered pairs (i, j) which satisfy the above condition in a new line.
Constraints
\(1 \le N \le 5 \times 10 ^ 5 \\ 1 \le A[i] \le 10^6\)
For every pair \((i, j)\) in this array where \(i \neq j\), it satisfy the condition in the problem statement. Hence, the answer is 6.