n = int(input())
l = list(map(int,input().split()))
count = 0
l.sort()
for a,i in enumerate(l):
    for b,j in enumerate(l,a+1):
        if i >= j:
            continue
        for c,k in enumerate(l,b+1):
            if j >= k:
                continue
            if k-j<i:
                count+=1
                
print(count) 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 count = 0 count 0 l.sort() l.sort l sort for a,i in enumerate(l):
    for b,j in enumerate(l,a+1):
        if i >= j:
            continue
        for c,k in enumerate(l,b+1):
            if j >= k:
                continue
            if k-j<i:
                count+=1
                 a i enumerate(l) enumerate l for b,j in enumerate(l,a+1):
        if i >= j:
            continue
        for c,k in enumerate(l,b+1):
            if j >= k:
                continue
            if k-j<i:
                count+=1
                 b j enumerate(l,a+1) enumerate l a+1 a 1 if i >= j:
            continue
         i >= j i j continue for c,k in enumerate(l,b+1):
            if j >= k:
                continue
            if k-j<i:
                count+=1
                 c k enumerate(l,b+1) enumerate l b+1 b 1 if j >= k:
                continue
             j >= k j k continue if k-j<i:
                count+=1
                 k-j<i k-j k j i count+=1 count 1 print(count) print count count+=1 1 count count = 0 0 count 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()))
count = 0
l.sort()
for a,i in enumerate(l):
    for b,j in enumerate(l,a+1):
        if i >= j:
            continue
        for c,k in enumerate(l,b+1):
            if j >= k:
                continue
            if k-j<i:
                count+=1
                
print(count)