#include using namespace std; signed main(){ string s;cin>>s; int ans=0; for(auto p:s)if(p>='0'&&p<='9')ans+=(char)(p-'0'); cout<