#include #include using namespace std; int main() { string score, str1; int x, y; x = 0; y = 0; cin >> score; for (int i = 0; i < 9; i++) { str1 = score.substr(i, 1); x = stoi(str1); if (x == 0) { x = 10; } y = y + x; } cout << y << endl; return 0; }