N = int(input())
L_list = list(map(int,input().split()))


counter = 0

for i in range(N-2):
    for j in range(i+1,N-1):
        for k in range(j+1,N):
            a = L_list[i]
            b = L_list[j]
            c = L_list[k]
            if a==b or b==c or c==a or a+b<=c or b+c<=a or c+a<=b:
                continue
            counter += 1


print(counter) N = int(input()) N int(input()) int input() input L_list = list(map(int,input().split())) L_list list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split counter = 0 counter 0 for i in range(N-2):
    for j in range(i+1,N-1):
        for k in range(j+1,N):
            a = L_list[i]
            b = L_list[j]
            c = L_list[k]
            if a==b or b==c or c==a or a+b<=c or b+c<=a or c+a<=b:
                continue
            counter += 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_list[i]
            b = L_list[j]
            c = L_list[k]
            if a==b or b==c or c==a or a+b<=c or b+c<=a or c+a<=b:
                continue
            counter += 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_list[i]
            b = L_list[j]
            c = L_list[k]
            if a==b or b==c or c==a or a+b<=c or b+c<=a or c+a<=b:
                continue
            counter += 1 k range(j+1,N) range j+1 j 1 N a = L_list[i] a L_list[i] L_list i b = L_list[j] b L_list[j] L_list j c = L_list[k] c L_list[k] L_list k if a==b or b==c or c==a or a+b<=c or b+c<=a or c+a<=b:
                continue
             a==b or b==c or c==a or a+b<=c or b+c<=a or c+a<=b a==b or b==c or c==a or a+b<=c or b+c<=a a==b or b==c or c==a or a+b<=c a==b or b==c or c==a a==b or b==c a==b a b b==c b c c==a c a a+b<=c a+b a b c b+c<=a b+c b c a c+a<=b c+a c a b continue counter += 1 counter 1 print(counter) print counter b = L_list[j] L_list[j] b counter = 0 0 counter a = L_list[i] L_list[i] a c = L_list[k] L_list[k] c N = int(input()) int(input()) N L_list = list(map(int,input().split())) list(map(int,input().split())) L_list counter += 1 1 counter
N = int(input())
L_list = list(map(int,input().split()))


counter = 0

for i in range(N-2):
    for j in range(i+1,N-1):
        for k in range(j+1,N):
            a = L_list[i]
            b = L_list[j]
            c = L_list[k]
            if a==b or b==c or c==a or a+b<=c or b+c<=a or c+a<=b:
                continue
            counter += 1


print(counter)