N = int(input())
L = list(map(int, input().split()))
T = 0
if N > 2:
    for i in range(N - 2):
        for j in range(i + 1, N - 1):
            for k in range(j + 1, N):
                a = L[i]
                b = L[j]
                c = L[k]
                abc = sorted(list({a, b, c}))
                if len(abc) == 3 and abc[0] + abc[1] > abc[2]:
                    T += 1
print(T) 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 T = 0 T 0 if N > 2:
    for i in range(N - 2):
        for j in range(i + 1, N - 1):
            for k in range(j + 1, N):
                a = L[i]
                b = L[j]
                c = L[k]
                abc = sorted(list({a, b, c}))
                if len(abc) == 3 and abc[0] + abc[1] > abc[2]:
                    T += 1 N > 2 N 2 for i in range(N - 2):
        for j in range(i + 1, N - 1):
            for k in range(j + 1, N):
                a = L[i]
                b = L[j]
                c = L[k]
                abc = sorted(list({a, b, c}))
                if len(abc) == 3 and abc[0] + abc[1] > abc[2]:
                    T += 1 i range(N - 2) range N - 2 N 2 for j in range(i + 1, N - 1):
            for k in range(j + 1, N):
                a = L[i]
                b = L[j]
                c = L[k]
                abc = sorted(list({a, b, c}))
                if len(abc) == 3 and abc[0] + abc[1] > abc[2]:
                    T += 1 j range(i + 1, N - 1) range i + 1 i 1 N - 1 N 1 for k in range(j + 1, N):
                a = L[i]
                b = L[j]
                c = L[k]
                abc = sorted(list({a, b, c}))
                if len(abc) == 3 and abc[0] + abc[1] > abc[2]:
                    T += 1 k range(j + 1, N) range j + 1 j 1 N a = L[i] a L[i] L i b = L[j] b L[j] L j c = L[k] c L[k] L k abc = sorted(list({a, b, c})) abc sorted(list({a, b, c})) sorted list({a, b, c}) list {a, b, c} if len(abc) == 3 and abc[0] + abc[1] > abc[2]:
                    T += 1 len(abc) == 3 and abc[0] + abc[1] > abc[2] len(abc) == 3 len(abc) len abc 3 abc[0] + abc[1] > abc[2] abc[0] + abc[1] abc[0] abc 0 abc[1] abc 1 abc[2] abc 2 T += 1 T 1 print(T) print T L = list(map(int, input().split())) list(map(int, input().split())) L a = L[i] L[i] a T += 1 1 T N = int(input()) int(input()) N b = L[j] L[j] b abc = sorted(list({a, b, c})) sorted(list({a, b, c})) abc T = 0 0 T c = L[k] L[k] c
N = int(input())
L = list(map(int, input().split()))
T = 0
if N > 2:
    for i in range(N - 2):
        for j in range(i + 1, N - 1):
            for k in range(j + 1, N):
                a = L[i]
                b = L[j]
                c = L[k]
                abc = sorted(list({a, b, c}))
                if len(abc) == 3 and abc[0] + abc[1] > abc[2]:
                    T += 1
print(T)