#include using namespace std; int main() { int ans = 0; char c; while (~scanf("%c", &c)) if ('1' <= c && c <= '9') ans += c - '0'; printf("%d\n", ans); }