Azizkhan and Temirulan love Swiss chocolate. Recently they bought a chocolate bar which is a row of $n$ pieces. Each piece has a certain amount of sweetness. Moreover, the sweetness of a piece can be negative.
To divide the chocolate bar in a fair way, they devised some rules for eating the pieces:
Azizkhan and Temirulan are both competitive persons. Each of them wants to consume more sweetness than the other. In other words, each player tries to maximize the difference between the total sweetness of the pieces he ate himself and the total sweetness of the pieces eaten by the opponent. Help them to find the difference between the total sweetness consumed by Azizkhan and Temirulan if both players are super-puper-monstro-smart-optimal persons.
The first line contains an integer $n$ ($1 \le n \le 4000$): the number of pieces in the chocolate bar.
The second line contains $n$ integers $a_1, a_2, \ldots, a_n$ ($-10^4 \le a_i \le 10^4$): the sweetness values of the pieces.
Output a line with a single integer: the difference between the total sweetness consumed by Azizkhan and the total sweetness consumed by Temirulan (in this order) if both play optimally.