Divisor Pairs

Given n integers, count ordered pairs (i, j) with i != j such that a_i divides a_j.

Medium4MathArrayNumber theoryImplementationNo attempts yetTime limit2sMemory limit512 MB

Problem

You are given a sequence of nn integers a1,a2,,ana_1, a_2, \ldots, a_n. Count the ordered pairs (i,j)(i, j) with i,j{1,,n}i, j \in \{1, \ldots, n\}, iji \neq j, such that aia_i is a divisor of aja_j.

Input

The first line contains one integer nn (1n2,000,0001 \leq n \leq 2,000,000).

The second line contains the nn integers a1,a2,,ana_1, a_2, \ldots, a_n of the sequence (1ai2,000,0001 \leq a_i \leq 2,000,000).

Output

Print one integer on the first line: the number of ordered pairs that satisfy the condition.

Hint

In the first sample there are 6 pairs with the required property: (1,2)(1, 2), (1,4)(1, 4), (1,5)(1, 5), (4,1)(4, 1), (4,2)(4, 2), (4,5)(4, 5).