#include #include using namespace std; int main() { string s; int i, ans = 0; cin >> s; for (i = 0; i < 9; i++) { if (s[i] == '0') {ans += 10;} else {ans += s[i] - '0';} } cout << ans << endl; return 0; }