You are given an array A having N integers. Find the number of triplets (i,j,k) such that
Input format
Output format
For each test case, print the number of triplets that satisfies the given conditions in a separate line.
Constraints
1≤T≤103≤N≤1051≤Ai≤105