ABCDEF - ABCDEF

题意翻译

``` 给定一个集合S(元素个数100以内) 求满足下式的六元组个数 ``` $$\frac{a*b+c}{d}-e=f$$ Translated by @xzyxzy

题目描述

You are given a set S of integers between -30000 and 30000 (inclusive). Find the total number of sextuples ![](https://cdn.luogu.com.cn/upload/vjudge_pic/SP4580/60da4a6ec7452a0168508bec756f9c6a0109d346.png) that satisfy: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/SP4580/5ae23b14079f628cec1090fc74b452939c2ffbe4.png) ### Input The first line contains integer N (1 Elements of S are given in the next N lines, one integer per line. Given numbers will be distinct.

输入输出格式

输入格式


输出格式


Output the total number of plausible sextuples.

输入输出样例

输入样例 #1

1
1

输出样例 #1

1

输入样例 #2

2
2
3

输出样例 #2

4

输入样例 #3

2
-1
1

输出样例 #3

24

输入样例 #4

3
5
7
10

输出样例 #4

10