Given an integer N in the first line of input, followed by N integers in the next line of input, find the sum of the numbers in odd places and the sum of numbers in even places.
Note: You will need to call console.nextInt() N times, each time it will give you one of the N integers.
Output two lines, the first line is the sum of the numbers in odd places and the second line is the sum of the numbers in even places.
See examples below
9 2 8 9 12 5 9 13 22 11
40 51
5 20 30 40 50 60
120 80