#include <iostream>
using namespace std;

int main() {
	char c; 
	int sum = 0;
	while(cin >> c) 
		if((c - '0') % 2 == 0) 
			sum += (c - '0');
	cout << sum << '\n';
 return 0;
}