#ABC473A. 后半段求和 / Second Half Sum

后半段求和 / Second Half Sum

Problem Statement

You are given an integer sequence of length NN: A=(A1,A2,,AN)A=(A_1,A_2,\dots,A_N). Here, NN is even. Find the sum of the latter half of AA, that is, the sum of A(N/2)+1,A(N/2)+2,,ANA_{(N/2)+1},A_{(N/2)+2},\dots,A_{N}.

Constraints

  • All input values are integers.
  • NN is an even number satisfying 2N1002 \le N \le 100.
  • 1Ai1001 \le A_i \le 100

Input

The input is given from Standard Input in the following format:

  • NN
  • A1A_1 A2A_2 \dots ANA_N

Output

Output the answer.

8
1 3 7 8 4 2 5 6
17

The length of the sequence AA is N=8N=8, and you should find the sum of A5,A6,A7,A8A_5,A_6,A_7,A_8. Since A5+A6+A7+A8=4+2+5+6=17A_5+A_6+A_7+A_8 = 4+2+5+6=17, output 1717.

2
1 100
100
10
31 41 59 26 53 58 97 93 23 84
355