#include<stdio.h>int main(){ int i=0,count=0; char a[100]; scanf("%s",a); while(a[i]!='\0') { if((a[i]-'0')%2==0) count+=(a[i]-'0'); i++; } printf("%d",count);}