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