You are given an array $$$a$$$ of length $$$n$$$. Find the number of ordered pairs $$$(x,y,z)$$$ such that $$$a_x\times a_y = a_z$$$ .
The first line contains an integer $$$n$$$ $$$(1\le n\le100)$$$- the number of elements in the array.
The second line contains $$$n$$$ integers $$$a_1,a_2,\dots,a_n$$$ $$$(1\le a_i\le 10^4)$$$ - elements of the array $$$a$$$.
Print a single integer - the number of ordered pairs that satisfied the constraints.
9 1 1 2 2 3 3 4 4 5
68