Misha really loves to invent new operations. Recently he has invented the new operation, that he has named Misha's product after himself.
Misha's product of the set of different integer numbers a_1,a_2,…,a_n is defined as follows. Consider all possible ordered pairs (a_i,a_j) of different numbers from this set. For each pair write these numbers one after another without a space, and get a new number b_ij. Misha's product of the initial set is the sum of all values b_ij.
Help Misha to calculate Misha's product for the given set of integers. Misha wants to calculate it modulo 109+7.
The first line contains one integer n --- the number of elements in the set (2≤n≤105).
The second line contains n different integers a_1,a_2,…,a_n --- numbers from the set (1≤a_i≤108).
Output one number --- Misha's product of the given set of numbers, modulo 109+7.
There are six possible pairs in sample test, the following values b_ij are obtained: 13, 31, 101, 103, 110, 310, their sum is equal to 668.