N = int(input())
l = sorted(list(map(int,input().split())))
ans = 0
for i in range(N):
    for j in range(i,N):
        for k in range(j,N):
            if l[i] != l[j] and l[j] != l[k] and l[k] != l[i]:
                if abs(l[i]-l[j]) < l[k] < l[i] + l[j]:
                    ans += 1
print(ans) 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 ans = 0 ans 0 for i in range(N):
    for j in range(i,N):
        for k in range(j,N):
            if l[i] != l[j] and l[j] != l[k] and l[k] != l[i]:
                if abs(l[i]-l[j]) < l[k] < l[i] + l[j]:
                    ans += 1 i range(N) range N for j in range(i,N):
        for k in range(j,N):
            if l[i] != l[j] and l[j] != l[k] and l[k] != l[i]:
                if abs(l[i]-l[j]) < l[k] < l[i] + l[j]:
                    ans += 1 j range(i,N) range i N for k in range(j,N):
            if l[i] != l[j] and l[j] != l[k] and l[k] != l[i]:
                if abs(l[i]-l[j]) < l[k] < l[i] + l[j]:
                    ans += 1 k range(j,N) range j N if l[i] != l[j] and l[j] != l[k] and l[k] != l[i]:
                if abs(l[i]-l[j]) < l[k] < l[i] + l[j]:
                    ans += 1 l[i] != l[j] and l[j] != l[k] and l[k] != l[i] l[i] != l[j] and l[j] != l[k] l[i] != l[j] l[i] l i l[j] l j l[j] != l[k] l[j] l j l[k] l k l[k] != l[i] l[k] l k l[i] l i if abs(l[i]-l[j]) < l[k] < l[i] + l[j]:
                    ans += 1 abs(l[i]-l[j]) < l[k] < l[i] + l[j] abs(l[i]-l[j]) < l[k] abs(l[i]-l[j]) abs l[i]-l[j] l[i] l i l[j] l j l[k] l k l[i] + l[j] l[i] l i l[j] l j ans += 1 ans 1 print(ans) print ans N = int(input()) int(input()) N l = sorted(list(map(int,input().split()))) sorted(list(map(int,input().split()))) l ans = 0 0 ans ans += 1 1 ans
N = int(input())
l = sorted(list(map(int,input().split())))
ans = 0
for i in range(N):
    for j in range(i,N):
        for k in range(j,N):
            if l[i] != l[j] and l[j] != l[k] and l[k] != l[i]:
                if abs(l[i]-l[j]) < l[k] < l[i] + l[j]:
                    ans += 1
print(ans)
