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