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