#P1259. Minus!!!

Minus!!!

题目描述

Welcome to the test,wish you can do well in this test.

So let's take a look at this question.

Zsh has an array aa of length nn.Now he wants you to calculate a[1]sumi=2na[i]a[1]-\\sum_{i=2}^n a[i] (1 indexed).

输入格式

The first line contains an integer nn (1leqnleq1000001 \\leq n \\leq 100000) — the length of array aa.

The second line contains nn integers a1,a2,...,ana_1,a_2,...,a_n (100000leqaileq100000 -100000\\leq a_i \\leq 100000) — the elements of the array aa.

输出格式

Only the answer.

样例

4 
1 2 3 4
-8
2 
-1 -1
0