n=int(input())
l=list(map(int,input().split()))
ans=0
for i in range(n):
  for j in range(i+1,n):
    for k in range(j+1,n):
      num=[l[i],l[j],l[k]]
      if len(set(num))!=3:continue
      num.sort()
      if num[2]<num[1]+num[0]:ans+=1
print(ans) n=int(input()) n int(input()) int input() input l=list(map(int,input().split())) l list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split ans=0 ans 0 for i in range(n):
  for j in range(i+1,n):
    for k in range(j+1,n):
      num=[l[i],l[j],l[k]]
      if len(set(num))!=3:continue
      num.sort()
      if num[2]<num[1]+num[0]:ans+=1 i range(n) range n for j in range(i+1,n):
    for k in range(j+1,n):
      num=[l[i],l[j],l[k]]
      if len(set(num))!=3:continue
      num.sort()
      if num[2]<num[1]+num[0]:ans+=1 j range(i+1,n) range i+1 i 1 n for k in range(j+1,n):
      num=[l[i],l[j],l[k]]
      if len(set(num))!=3:continue
      num.sort()
      if num[2]<num[1]+num[0]:ans+=1 k range(j+1,n) range j+1 j 1 n num=[l[i],l[j],l[k]] num [l[i],l[j],l[k]] l[i] l i l[j] l j l[k] l k if len(set(num))!=3:continue
       len(set(num))!=3 len(set(num)) len set(num) set num 3 num.sort() num.sort num sort if num[2]<num[1]+num[0]: num[2]<num[1]+num[0] num[2] num 2 num[1]+num[0] num[1] num 1 num[0] num 0 print(ans) print ans l=list(map(int,input().split())) list(map(int,input().split())) l ans=0 0 ans n=int(input()) int(input()) n num=[l[i],l[j],l[k]] [l[i],l[j],l[k]] num
n=int(input())
l=list(map(int,input().split()))
ans=0
for i in range(n):
  for j in range(i+1,n):
    for k in range(j+1,n):
      num=[l[i],l[j],l[k]]
      if len(set(num))!=3:continue
      num.sort()
      if num[2]<num[1]+num[0]:ans+=1
print(ans)