N = int(input())

L = [int(x) for x in input().split()]

M = []
for a in range(N):
  for b in range(a+1,N):
    for c in range(b+1,N):
      if L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] \
      and L[a] != L[b] and L[a] != L[c] and L[b] != L[c]:
        M.append((a,b,c))

print(len(M)) N = int(input()) N int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x L = [int(x) for x in input().split()] L [int(x) for x in input().split()] M = [] M [] for a in range(N):
  for b in range(a+1,N):
    for c in range(b+1,N):
      if L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] \
      and L[a] != L[b] and L[a] != L[c] and L[b] != L[c]:
        M.append((a,b,c)) a range(N) range N for b in range(a+1,N):
    for c in range(b+1,N):
      if L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] \
      and L[a] != L[b] and L[a] != L[c] and L[b] != L[c]:
        M.append((a,b,c)) b range(a+1,N) range a+1 a 1 N for c in range(b+1,N):
      if L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] \
      and L[a] != L[b] and L[a] != L[c] and L[b] != L[c]:
        M.append((a,b,c)) c range(b+1,N) range b+1 b 1 N if L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] \
      and L[a] != L[b] and L[a] != L[c] and L[b] != L[c]:
        M.append((a,b,c)) L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] \
      and L[a] != L[b] and L[a] != L[c] and L[b] != L[c] L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] \
      and L[a] != L[b] and L[a] != L[c] L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] \
      and L[a] != L[b] L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] L[a]+L[b]>L[c] and L[a]+L[c]>L[b] L[a]+L[b]>L[c] L[a]+L[b] L[a] L a L[b] L b L[c] L c L[a]+L[c]>L[b] L[a]+L[c] L[a] L a L[c] L c L[b] L b L[b]+L[c]>L[a] L[b]+L[c] L[b] L b L[c] L c L[a] L a L[a] != L[b] L[a] L a L[b] L b L[a] != L[c] L[a] L a L[c] L c L[b] != L[c] L[b] L b L[c] L c M.append((a,b,c)) M.append M append (a,b,c) a b c print(len(M)) print len(M) len M N = int(input()) int(input()) N L = [int(x) for x in input().split()] [int(x) for x in input().split()] L M = [] [] M
N = int(input())

L = [int(x) for x in input().split()]

M = []
for a in range(N):
  for b in range(a+1,N):
    for c in range(b+1,N):
      if L[a]+L[b]>L[c] and L[a]+L[c]>L[b] and L[b]+L[c]>L[a] \
      and L[a] != L[b] and L[a] != L[c] and L[b] != L[c]:
        M.append((a,b,c))

print(len(M))