n = int(input())
l = list(map(int, input().split(" ")))

arr_arr = []

for i in range(n-2):
    for j in range(i+1, n-1):
        for k in range(j+1, n):
            arr = sorted([l[i], l[j], l[k]])
            if (arr[0] + arr[1] > arr[2]) and ((arr[0] != arr[1])and(arr[1] != arr[2])):
                arr_arr.append(arr)

print(len(arr_arr)) 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 " " arr_arr = [] arr_arr [] for i in range(n-2):
    for j in range(i+1, n-1):
        for k in range(j+1, n):
            arr = sorted([l[i], l[j], l[k]])
            if (arr[0] + arr[1] > arr[2]) and ((arr[0] != arr[1])and(arr[1] != arr[2])):
                arr_arr.append(arr) i range(n-2) range n-2 n 2 for j in range(i+1, n-1):
        for k in range(j+1, n):
            arr = sorted([l[i], l[j], l[k]])
            if (arr[0] + arr[1] > arr[2]) and ((arr[0] != arr[1])and(arr[1] != arr[2])):
                arr_arr.append(arr) j range(i+1, n-1) range i+1 i 1 n-1 n 1 for k in range(j+1, n):
            arr = sorted([l[i], l[j], l[k]])
            if (arr[0] + arr[1] > arr[2]) and ((arr[0] != arr[1])and(arr[1] != arr[2])):
                arr_arr.append(arr) k range(j+1, n) range j+1 j 1 n arr = sorted([l[i], l[j], l[k]]) arr sorted([l[i], l[j], l[k]]) sorted [l[i], l[j], l[k]] l[i] l i l[j] l j l[k] l k if (arr[0] + arr[1] > arr[2]) and ((arr[0] != arr[1])and(arr[1] != arr[2])):
                arr_arr.append(arr) (arr[0] + arr[1] > arr[2]) and ((arr[0] != arr[1])and(arr[1] != arr[2])) arr[0] + arr[1] > arr[2] arr[0] + arr[1] arr[0] arr 0 arr[1] arr 1 arr[2] arr 2 (arr[0] != arr[1])and(arr[1] != arr[2]) arr[0] != arr[1] arr[0] arr 0 arr[1] arr 1 arr[1] != arr[2] arr[1] arr 1 arr[2] arr 2 arr_arr.append(arr) arr_arr.append arr_arr append arr print(len(arr_arr)) print len(arr_arr) len arr_arr arr = sorted([l[i], l[j], l[k]]) sorted([l[i], l[j], l[k]]) arr arr_arr = [] [] arr_arr n = int(input()) int(input()) n l = list(map(int, input().split(" "))) list(map(int, input().split(" "))) l
n = int(input())
l = list(map(int, input().split(" ")))

arr_arr = []

for i in range(n-2):
    for j in range(i+1, n-1):
        for k in range(j+1, n):
            arr = sorted([l[i], l[j], l[k]])
            if (arr[0] + arr[1] > arr[2]) and ((arr[0] != arr[1])and(arr[1] != arr[2])):
                arr_arr.append(arr)

print(len(arr_arr))