#include using namespace std; int main() { int s=0; char c; for (int i=0;i<9;i++) { cin >> c; s+=c!='0'?c-'0':10; } cout << s << endl; return 0; }