n=int(input())

a=input().split(' ')
b=[int(i) for i in a]
s=0
for k in range(2,n):
  for j in range(1,k):
    for i in range(j):
      if (b[i]!=b[j] and b[j]!=b[k] and b[k]!=b[i]):
        m=max(b[i],b[j],b[k])
        if 2*m<b[i]+b[j]+b[k]:
          s+=1
print(s) n=int(input()) n int(input()) int input() input a=input().split(' ') a input().split(' ') ().split () input split ' ' int(i) for i in a for i in a i a for i in a int(i) int i b=[int(i) for i in a] b [int(i) for i in a] s=0 s 0 for k in range(2,n):
  for j in range(1,k):
    for i in range(j):
      if (b[i]!=b[j] and b[j]!=b[k] and b[k]!=b[i]):
        m=max(b[i],b[j],b[k])
        if 2*m<b[i]+b[j]+b[k]:
          s+=1 k range(2,n) range 2 n for j in range(1,k):
    for i in range(j):
      if (b[i]!=b[j] and b[j]!=b[k] and b[k]!=b[i]):
        m=max(b[i],b[j],b[k])
        if 2*m<b[i]+b[j]+b[k]:
          s+=1 j range(1,k) range 1 k for i in range(j):
      if (b[i]!=b[j] and b[j]!=b[k] and b[k]!=b[i]):
        m=max(b[i],b[j],b[k])
        if 2*m<b[i]+b[j]+b[k]:
          s+=1 i range(j) range j if (b[i]!=b[j] and b[j]!=b[k] and b[k]!=b[i]):
        m=max(b[i],b[j],b[k])
        if 2*m<b[i]+b[j]+b[k]:
          s+=1 b[i]!=b[j] and b[j]!=b[k] and b[k]!=b[i] b[i]!=b[j] and b[j]!=b[k] b[i]!=b[j] b[i] b i b[j] b j b[j]!=b[k] b[j] b j b[k] b k b[k]!=b[i] b[k] b k b[i] b i m=max(b[i],b[j],b[k]) m max(b[i],b[j],b[k]) max b[i] b i b[j] b j b[k] b k if 2*m<b[i]+b[j]+b[k]:
          s+=1 2*m<b[i]+b[j]+b[k] 2*m 2 m b[i]+b[j]+b[k] b[i]+b[j] b[i] b i b[j] b j b[k] b k s+=1 s 1 print(s) print s n=int(input()) int(input()) n m=max(b[i],b[j],b[k]) max(b[i],b[j],b[k]) m s=0 0 s s+=1 1 s a=input().split(' ') input().split(' ') a b=[int(i) for i in a] [int(i) for i in a] b
n=int(input())

a=input().split(' ')
b=[int(i) for i in a]
s=0
for k in range(2,n):
  for j in range(1,k):
    for i in range(j):
      if (b[i]!=b[j] and b[j]!=b[k] and b[k]!=b[i]):
        m=max(b[i],b[j],b[k])
        if 2*m<b[i]+b[j]+b[k]:
          s+=1
print(s)