Given an array A of integers. Please find the number of pairs <A[i], A[j]> in A that satisfy the following conditions.
For example, we can find that <4,2>, <6,2>, <9,2> satisfy conditions.
Each test case begins with a line containing an integer N, which is the size of the array.
The next line contains N integers, which denote the elements of the array.
Please note:
Print the number of pairs <A[i], A[j]> in A that satisfy those conditions. A newline is added after the answer.