Problem12254--求偶数和

12254: 求偶数和

[Creator : Imported]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

 

输入n个整数,先判断这个整数是否偶数,如果是偶数就加起来。求所有偶数的和!

Input

第一行:一个整数n;

第二行:n个整数。

Output

一个整数,表示偶数的和。

Sample Input Copy

10
45 60 52 14 31 28 20 66 79 43

Sample Output Copy

240
Please give us a Star @HUSTOJ Github!

欢迎关注微信公众号onlinejudge