n=int(input())
r=list(map(int,input().split()))
t=0
for i in range(n):
	for j in range(i+1,n):
		for k in range(j+1,n):
			if r[i]==r[j] or r[j]==r[k] or r[i]==r[k]:continue
			s=[r[i],r[j],r[k]]
			s.sort()
			if s[0]+s[1]>s[2]:
				t+=1
print(t) n=int(input()) n int(input()) int input() input r=list(map(int,input().split())) r list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split t=0 t 0 for i in range(n):
	for j in range(i+1,n):
		for k in range(j+1,n):
			if r[i]==r[j] or r[j]==r[k] or r[i]==r[k]:continue
			s=[r[i],r[j],r[k]]
			s.sort()
			if s[0]+s[1]>s[2]:
				t+=1 i range(n) range n for j in range(i+1,n):
		for k in range(j+1,n):
			if r[i]==r[j] or r[j]==r[k] or r[i]==r[k]:continue
			s=[r[i],r[j],r[k]]
			s.sort()
			if s[0]+s[1]>s[2]:
				t+=1 j range(i+1,n) range i+1 i 1 n for k in range(j+1,n):
			if r[i]==r[j] or r[j]==r[k] or r[i]==r[k]:continue
			s=[r[i],r[j],r[k]]
			s.sort()
			if s[0]+s[1]>s[2]:
				t+=1 k range(j+1,n) range j+1 j 1 n if r[i]==r[j] or r[j]==r[k] or r[i]==r[k]:continue
			 r[i]==r[j] or r[j]==r[k] or r[i]==r[k] r[i]==r[j] or r[j]==r[k] r[i]==r[j] r[i] r i r[j] r j r[j]==r[k] r[j] r j r[k] r k r[i]==r[k] r[i] r i r[k] r k s=[r[i],r[j],r[k]] s [r[i],r[j],r[k]] r[i] r i r[j] r j r[k] r k s.sort() s.sort s sort if s[0]+s[1]>s[2]:
				t+=1 s[0]+s[1]>s[2] s[0]+s[1] s[0] s 0 s[1] s 1 s[2] s 2 t+=1 t 1 print(t) print t r=list(map(int,input().split())) list(map(int,input().split())) r t=0 0 t t+=1 1 t n=int(input()) int(input()) n s=[r[i],r[j],r[k]] [r[i],r[j],r[k]] s
n=int(input())
r=list(map(int,input().split()))
t=0
for i in range(n):
	for j in range(i+1,n):
		for k in range(j+1,n):
			if r[i]==r[j] or r[j]==r[k] or r[i]==r[k]:continue
			s=[r[i],r[j],r[k]]
			s.sort()
			if s[0]+s[1]>s[2]:
				t+=1
print(t)