main(){ int n=9,s=0; while(n--){ char c = getchar(); s += c-48; if(c=='0')s+=10; } printf("%d\n",s); return 0; }