#include int main() { char scores[9]; int score_sum=0; std::cin >> scores; for(int i=0;i<9;i++){ int si = atoi(&scores[i]); if(si==0) score_sum += 10; else score_sum += si; } std::cout << score_sum << std::endl; }