#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int a = 1;
  for (int i = 1; i < s.size(); i++) {
    if (s[i] == '1') {
      a += 10;
    } else {
      a += s[i] - '0';
    }
  }
  cout << a << "\n";
}
