Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/if-juftlarining-yigindisi

Sum of the even ones

Easy 1000 ms 64 MB 18%
Share

Three integers $A$, $B$ and $C$ are given. Compute the sum of only the even ones. Negative numbers are even or odd too ($-4$ is even, $-3$ is odd), and $0$ is even. If there are no even numbers, print $0$.

Only the even numbers among three are picked out and added

Input

One line with three integers: $A$, $B$ and $C$.

Output

One integer — the sum of the even numbers.

Note

$-10^{9} \le A, B, C \le 10^{9}$

Examples

Input #1
1 4 6
Output #1
10
Input #2
3 5 7
Output #2
0

Sign in to submit a solution

Signing up is free and takes a minute.