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