#include #include #include #include #include #include #include using namespace std; #define diff(x,y) ((x > y) ? (x - y) : (y - x)) #define us(x) (x > 0) ? x : x * -1 #define lli long long int int main() { string str; int ans = 0; cin >> str; for (int i = 0; i < str.size(); i++) { if ('0' <= str[i] && str[i] <= '9') ans += str[i] - '0'; } cout << ans << endl; return 0; }