
N = int(input())
Ns = list(map(int, input().split()))
Ns.sort()
ans = 0

for i in range(0, N - 2):
	for j in range(i + 1, N - 1):
		for k in range(j + 1, N):
			if(Ns[i] == Ns[j] or Ns[k] == Ns[j]):
				continue

			if(Ns[i] + Ns[j] > Ns[k] and Ns[j] + Ns[k] > Ns[i] and Ns[k] + Ns[i] > Ns[j]):
				ans += 1
print(ans) N = int(input()) N int(input()) int input() input Ns = list(map(int, input().split())) Ns list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split Ns.sort() Ns.sort Ns sort ans = 0 ans 0 for i in range(0, N - 2):
	for j in range(i + 1, N - 1):
		for k in range(j + 1, N):
			if(Ns[i] == Ns[j] or Ns[k] == Ns[j]):
				continue

			if(Ns[i] + Ns[j] > Ns[k] and Ns[j] + Ns[k] > Ns[i] and Ns[k] + Ns[i] > Ns[j]):
				ans += 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(Ns[i] == Ns[j] or Ns[k] == Ns[j]):
				continue

			if(Ns[i] + Ns[j] > Ns[k] and Ns[j] + Ns[k] > Ns[i] and Ns[k] + Ns[i] > Ns[j]):
				ans += 1 j range(i + 1, N - 1) range i + 1 i 1 N - 1 N 1 for k in range(j + 1, N):
			if(Ns[i] == Ns[j] or Ns[k] == Ns[j]):
				continue

			if(Ns[i] + Ns[j] > Ns[k] and Ns[j] + Ns[k] > Ns[i] and Ns[k] + Ns[i] > Ns[j]):
				ans += 1 k range(j + 1, N) range j + 1 j 1 N if(Ns[i] == Ns[j] or Ns[k] == Ns[j]):
				continue

			 Ns[i] == Ns[j] or Ns[k] == Ns[j] Ns[i] == Ns[j] Ns[i] Ns i Ns[j] Ns j Ns[k] == Ns[j] Ns[k] Ns k Ns[j] Ns j continue if(Ns[i] + Ns[j] > Ns[k] and Ns[j] + Ns[k] > Ns[i] and Ns[k] + Ns[i] > Ns[j]):
				ans += 1 Ns[i] + Ns[j] > Ns[k] and Ns[j] + Ns[k] > Ns[i] and Ns[k] + Ns[i] > Ns[j] Ns[i] + Ns[j] > Ns[k] and Ns[j] + Ns[k] > Ns[i] Ns[i] + Ns[j] > Ns[k] Ns[i] + Ns[j] Ns[i] Ns i Ns[j] Ns j Ns[k] Ns k Ns[j] + Ns[k] > Ns[i] Ns[j] + Ns[k] Ns[j] Ns j Ns[k] Ns k Ns[i] Ns i Ns[k] + Ns[i] > Ns[j] Ns[k] + Ns[i] Ns[k] Ns k Ns[i] Ns i Ns[j] Ns j ans += 1 ans 1 print(ans) print ans ans += 1 1 ans N = int(input()) int(input()) N ans = 0 0 ans Ns = list(map(int, input().split())) list(map(int, input().split())) Ns

N = int(input())
Ns = list(map(int, input().split()))
Ns.sort()
ans = 0

for i in range(0, N - 2):
	for j in range(i + 1, N - 1):
		for k in range(j + 1, N):
			if(Ns[i] == Ns[j] or Ns[k] == Ns[j]):
				continue

			if(Ns[i] + Ns[j] > Ns[k] and Ns[j] + Ns[k] > Ns[i] and Ns[k] + Ns[i] > Ns[j]):
				ans += 1
print(ans)