#K61997. Sum of Even Digits

    ID: 31433 Type: Default 1000ms 256MiB

Sum of Even Digits

Sum of Even Digits

Given an integer N, your task is to compute the sum of all even digits in N. The input will consist of a single integer, and you need to output the sum of its even digits.

For example, if N = 12345, the even digits are 2 and 4, so the output should be 6. If there are no even digits, the output should be 0.

Note: Ensure that your solution reads input from stdin and writes the result to stdout. Use efficient methods for parsing and processing the integer.

inputFormat

The input consists of a single line containing an integer N.

outputFormat

Output a single line containing the sum of all even digits in the number N.## sample

12345
6