Given n integers, count ordered pairs (i, j) with i != j such that a_i divides a_j.
You are given a sequence of nnn integers a1,a2,…,ana_1, a_2, \ldots, a_na1,a2,…,an. Count the ordered pairs (i,j)(i, j)(i,j) with i,j∈{1,…,n}i, j \in \{1, \ldots, n\}i,j∈{1,…,n}, i≠ji \neq ji=j, such that aia_iai is a divisor of aja_jaj.
The first line contains one integer nnn (1≤n≤2,000,0001 \leq n \leq 2,000,0001≤n≤2,000,000).
The second line contains the nnn integers a1,a2,…,ana_1, a_2, \ldots, a_na1,a2,…,an of the sequence (1≤ai≤2,000,0001 \leq a_i \leq 2,000,0001≤ai≤2,000,000).
Print one integer on the first line: the number of ordered pairs that satisfy the condition.
In the first sample there are 6 pairs with the required property: (1,2)(1, 2)(1,2), (1,4)(1, 4)(1,4), (1,5)(1, 5)(1,5), (4,1)(4, 1)(4,1), (4,2)(4, 2)(4,2), (4,5)(4, 5)(4,5).