n = int(input())
list_l = [int(x) for x in input().split()]

count = 0

# 組合せnCpの総当たりforループ（計算速度遅）
for i in range(0, n - 2):
    for j in range(i + 1, n - 1):
        for k in range(j + 1, n):
            if list_l[i] != list_l[j] != list_l[k] and list_l[i] != list_l[k]:
                if list_l[i] < list_l[j] + list_l[k] and list_l[j] < list_l[i] + list_l[k] and list_l[k] < list_l[i] + list_l[j]:
                    
                    count += 1
print(count) n = int(input()) n int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x list_l = [int(x) for x in input().split()] list_l [int(x) for x in input().split()] count = 0 count 0 for i in range(0, n - 2):
    for j in range(i + 1, n - 1):
        for k in range(j + 1, n):
            if list_l[i] != list_l[j] != list_l[k] and list_l[i] != list_l[k]:
                if list_l[i] < list_l[j] + list_l[k] and list_l[j] < list_l[i] + list_l[k] and list_l[k] < list_l[i] + list_l[j]:
                    
                    count += 1 i range(0, n - 2) range 0 n - 2 n 2 for j in range(i + 1, n - 1):
        for k in range(j + 1, n):
            if list_l[i] != list_l[j] != list_l[k] and list_l[i] != list_l[k]:
                if list_l[i] < list_l[j] + list_l[k] and list_l[j] < list_l[i] + list_l[k] and list_l[k] < list_l[i] + list_l[j]:
                    
                    count += 1 j range(i + 1, n - 1) range i + 1 i 1 n - 1 n 1 for k in range(j + 1, n):
            if list_l[i] != list_l[j] != list_l[k] and list_l[i] != list_l[k]:
                if list_l[i] < list_l[j] + list_l[k] and list_l[j] < list_l[i] + list_l[k] and list_l[k] < list_l[i] + list_l[j]:
                    
                    count += 1 k range(j + 1, n) range j + 1 j 1 n if list_l[i] != list_l[j] != list_l[k] and list_l[i] != list_l[k]:
                if list_l[i] < list_l[j] + list_l[k] and list_l[j] < list_l[i] + list_l[k] and list_l[k] < list_l[i] + list_l[j]:
                    
                    count += 1 list_l[i] != list_l[j] != list_l[k] and list_l[i] != list_l[k] list_l[i] != list_l[j] != list_l[k] list_l[i] != list_l[j] list_l[i] list_l i list_l[j] list_l j list_l[k] list_l k list_l[i] != list_l[k] list_l[i] list_l i list_l[k] list_l k if list_l[i] < list_l[j] + list_l[k] and list_l[j] < list_l[i] + list_l[k] and list_l[k] < list_l[i] + list_l[j]:
                    
                    count += 1 list_l[i] < list_l[j] + list_l[k] and list_l[j] < list_l[i] + list_l[k] and list_l[k] < list_l[i] + list_l[j] list_l[i] < list_l[j] + list_l[k] and list_l[j] < list_l[i] + list_l[k] list_l[i] < list_l[j] + list_l[k] list_l[i] list_l i list_l[j] + list_l[k] list_l[j] list_l j list_l[k] list_l k list_l[j] < list_l[i] + list_l[k] list_l[j] list_l j list_l[i] + list_l[k] list_l[i] list_l i list_l[k] list_l k list_l[k] < list_l[i] + list_l[j] list_l[k] list_l k list_l[i] + list_l[j] list_l[i] list_l i list_l[j] list_l j count += 1 count 1 print(count) print count list_l = [int(x) for x in input().split()] [int(x) for x in input().split()] list_l count = 0 0 count count += 1 1 count n = int(input()) int(input()) n
n = int(input())
list_l = [int(x) for x in input().split()]

count = 0

# 組合せnCpの総当たりforループ（計算速度遅）
for i in range(0, n - 2):
    for j in range(i + 1, n - 1):
        for k in range(j + 1, n):
            if list_l[i] != list_l[j] != list_l[k] and list_l[i] != list_l[k]:
                if list_l[i] < list_l[j] + list_l[k] and list_l[j] < list_l[i] + list_l[k] and list_l[k] < list_l[i] + list_l[j]:
                    
                    count += 1
print(count)