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

~/algor $ cat problems/funksiya-juft-raqamlar

Count of even digits

Easy 1000 ms 128 MB 30%
Share

Write a function EvenDigitCount(n) that returns the number of even digits ($0$, $2$, $4$, $6$, $8$) in the integer $n$.

Example 1: EvenDigitCount(2024) → 4

Example 2: EvenDigitCount(-135) → 0 — $1$, $3$ and $5$ are odd digits.

Write only the function body.

A number goes into the function EvenDigitCount, which returns the number of even digits in it

Input

One line with an integer $n$ — the argument of the function.

Output

The value returned by the function: an integer.

Note

$-10^{9} \le n \le 10^{9}$

Examples

Input #1
2024
Output #1
4
Input #2
-135
Output #2
0

Sign in to submit a solution

Signing up is free and takes a minute.