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