Given an array A of N integers. Find the number of unordered pairs (i,j), 1≤i,j≤N such that
Input format
Output format
Print the number of unordered pairs (i,j) which satisfy the above conditions in a new line.
Constraints
1≤N≤1051≤L≤R≤10181≤A[i]≤1018
Following unordered pairs satisfy the above conditions: