#include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you int ans; int main() { string h; cin >> h; for (int i = 0; i < h.length(); ++i) { if (h[i] == '0') { ans += 10; } else { ans += h[i] - '0'; } } cout << ans << endl; }