There are N stones of different weights.
It is required to divide them on two heaps so that weight of heaps were as much
as possible close to each other.
Input. First line contains natural number N
(1<=N<=40). Next line contains N integer numbers wi - weights of stones
(1<=wi<=10^8), separated by spaces.
Output. Minimal absolute value of a difference
of weights of heaps.
Example.