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≤N≤5×1051≤A[i]≤106
For every pair (i,j) in this array where i≠j, it satisfy the condition in the problem statement. Hence, the answer is 6.