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