#C14187. Sum of Even Numbers Greater Than Ten
Sum of Even Numbers Greater Than Ten
Sum of Even Numbers Greater Than Ten
You are given a list of integers. Your task is to compute the sum of all even numbers in the list that are greater than 10.
In other words, given a sequence of numbers \(a_1, a_2, \dots, a_n\), calculate \[ S = \sum_{i=1}^{n} \left\{ a_i \; \middle| \; a_i > 10 \text{ and } a_i \equiv 0 \; (\bmod\; 2) \right\}. \]
If no such number exists, print 0.
inputFormat
The first line of input contains a single integer \(n\) denoting the number of integers.
The second line contains \(n\) space-separated integers.
If \(n\) is 0, the second line will be empty.
outputFormat
Output a single integer which is the sum of all even numbers greater than 10.
## sample7
4 15 8 23 42 2 18
60