#include <iostream> using namespace std; int main() { int n, s, c; cin>>n; s=0; while (n>0) { c=n%10; if (c%2==0) { s=s+c; n=n/10; } else { n=n/10; } } cout<<s; }