#include int main(void) { char s[10]; int total = 0; int i; scanf("%s", s); for (i = 0; i < 9; i++) { if (s[i] - '0' == 0) total += 10; else total += s[i] - '0'; } printf("%d\n", total); return 0; }