#include using namespace std; typedef long long ll; int main() { string s; cin>>s; int ans=0; for (char c : s) if ('1' <= c && c <= '9') ans+=c-'0'; cout<