#include int main(){ int d=0,i=0; char s[10]; scanf("%s",s); while(s[i] != '\0'){ if(s[i]=='0')d += 10; else d += s[i]-'0'; i++; } printf("%d",d); }