// No.656 ゴルフ // https://yukicoder.me/problems/no/656 // #include using namespace std; int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); string s; cin >> s; int score = 0; for (char c: s) { if (c == '0') score += 10; else score += c - '0'; } cout << score << endl; }