Given an integer

and

integers

, you should divide these numbers into

groups and each group contains exactly two integers. Now define the weight of a group as the difference between the two integers in the group, and the weight of a dividing manner as the variance of the

group weights. Determine the expectation value of the dividing manner weight modulo

.
Here, the variance of

numbers

equals
%5E2)
, where

.
输入描述:
The first line contains one integer
.
The second line contains
integers
.
输出描述:
Only one line containing one integer, denoting the answer.