#include #include using namespace std; int main(){ string s; cin >> s; int cnt =0; for(auto val: s){ if(val>='0'&&val<='9') cnt += val - '0'; } cout << cnt << endl; }