#P154. 练25.3 偶数求和

练25.3 偶数求和

Description

Input n integers and calculate the sum of all even numbers among them.

Input Format

The first line contains an integer n (1n1051≤n≤10^5) representing the number of integers.
The next line contains n integers within the range of int.

Output Format

An integer representing the sum of all even numbers.

Sample

5
1 4 2 7 8
14