Problem H: 奇数位偶数位和与差 [1*] Odd-bit even-bit sum and difference [1*]

Problem H: 奇数位偶数位和与差 [1*] Odd-bit even-bit sum and difference [1*]

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 38  Solved: 17
[Submit] [Status] [Web Board] [Creator:]

Description

【问题】输入N个数,求它们奇数位之和偶数位之和,并输出它们的差的绝对值
[Problem] Input N numbers, find the sum of their odd and sum of even bits, and output the absolute value of difference of sum


【输入说明】第一行数值n,接下来n行,每行一个整形数字。
[Input description] The first line is the value n, the next n lines, each line is an integer number.


【输出要求】第一行输出奇数位和。第二行输出偶数位的和。第三行,将上述大的和减去小的和的差。
[Output requirements] The first line outputs the sum of odd-bits. The second line outputs the sum of the even bits. In the third line, subtract the difference of the small sum from the large sum.

【说明】【explain】n<=1000

Input

5
4
6
8
10
12

Output

                          【解释 不用输出 for explian and no need print part from //】
24      // {4+8+12}出】
16      // {6+10}
8      // {24-16}