#include int main() { char s[11]; int ans=0; scanf("%s",s); for (int i=0;i<9;i++){ ans+=(s[i]=='0')?10:s[i]-'0'; } printf("%d\n",ans); }