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