#include using namespace std; int main(){ string s; int sum = 0; cin >> s; for(char c:s){ if(isdigit(c)){ sum += c-'0'; } } cout << sum << endl; return 0; }