N = int(input())

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

le = len(L)

score = 0

for i in range(le):
    for j in range(i+1,le):
        for k in range(j+1,le):
            if (L[i] + L[j] > L[k] and
                L[i] + L[k] > L[j] and
                    L[k] + L[j] > L[i] ):
                         if (L[i] != L[j] and
                            L[i] != L[k] and
                            L[k] != L[j]):
                                score += 1

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

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

le = len(L)

score = 0

for i in range(le):
    for j in range(i+1,le):
        for k in range(j+1,le):
            if (L[i] + L[j] > L[k] and
                L[i] + L[k] > L[j] and
                    L[k] + L[j] > L[i] ):
                         if (L[i] != L[j] and
                            L[i] != L[k] and
                            L[k] != L[j]):
                                score += 1

print(score)