#C1228. Sum of Prime Digits

    ID: 41689 Type: Default 1000ms 256MiB

Sum of Prime Digits

Sum of Prime Digits

Given an integer \(N\), compute the sum of all its prime digits. The prime digits are defined as \(\{2, 3, 5, 7\}\). For example, if \(N = 254\), then the prime digits are 2, 5, and the sum is \(2+5=7\).

Your task is to write a program that reads an integer from standard input and prints the sum of its prime digits to standard output.

inputFormat

The input consists of a single integer \(N\) (\(0 \leq N \leq 10^{18}\)), given via standard input.

outputFormat

Output a single integer representing the sum of all prime digits in \(N\) to standard output.

## sample
254
7