N=int(input())
L=sorted(list(map(int,input().split())))

c=0
for i in range(N-2):
    for j in range(i+1,N-1):
        if L[i]==L[j]:
            continue
        for k in range(j+1,N):
            if L[j]==L[k]:
                continue
            if L[i]+L[j]>L[k]:
                c+=1
            else:
                break
print(c) N=int(input()) N int(input()) int input() input L=sorted(list(map(int,input().split()))) L sorted(list(map(int,input().split()))) sorted list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split c=0 c 0 for i in range(N-2):
    for j in range(i+1,N-1):
        if L[i]==L[j]:
            continue
        for k in range(j+1,N):
            if L[j]==L[k]:
                continue
            if L[i]+L[j]>L[k]:
                c+=1
            else:
                break i range(N-2) range N-2 N 2 for j in range(i+1,N-1):
        if L[i]==L[j]:
            continue
        for k in range(j+1,N):
            if L[j]==L[k]:
                continue
            if L[i]+L[j]>L[k]:
                c+=1
            else:
                break j range(i+1,N-1) range i+1 i 1 N-1 N 1 if L[i]==L[j]:
            continue
         L[i]==L[j] L[i] L i L[j] L j continue for k in range(j+1,N):
            if L[j]==L[k]:
                continue
            if L[i]+L[j]>L[k]:
                c+=1
            else:
                break k range(j+1,N) range j+1 j 1 N if L[j]==L[k]:
                continue
             L[j]==L[k] L[j] L j L[k] L k continue if L[i]+L[j]>L[k]:
                c+=1
            else:
                break L[i]+L[j]>L[k] L[i]+L[j] L[i] L i L[j] L j L[k] L k c+=1 c 1 break print(c) print c c=0 0 c L=sorted(list(map(int,input().split()))) sorted(list(map(int,input().split()))) L c+=1 1 c N=int(input()) int(input()) N
N=int(input())
L=sorted(list(map(int,input().split())))

c=0
for i in range(N-2):
    for j in range(i+1,N-1):
        if L[i]==L[j]:
            continue
        for k in range(j+1,N):
            if L[j]==L[k]:
                continue
            if L[i]+L[j]>L[k]:
                c+=1
            else:
                break
print(c)
