#include #include #include #include using namespace std; int main(){ string s; string a; int num,score=0; cin >> s; for (int i = 0; i < 9; i++) { a = s[i]; num = atoi(a.c_str()); if (num == 0) { score += 10; } else { score += num; } } cout << score << endl; }