What can be a better place to start your journey than to enter through the Gate of Gehenna itself. But opening the the gate of Gehenna requires you to solve a simple task to check whether you are eligible to enter it or not.
Solve this task and the Gate will open.
Given an Array A of N distinct non-negative integers, print total number of distinct triplets (x, y, z) such that:
INPUT:
First line contains N followed by N integers in next line.
OUTPUT:
A single Integer as described above.
Constraint:
1 ≤ N ≤ 100
0 <= Ai <= 1000000000
In this case, triplets are (2,3,5) and (3,2,5).