#include int main() { unsigned int S, sum=0; scanf("%u",&S); for(int i=0;i<9;i++) { sum += S%10==0?10:S%10; S /= 10; } printf("%u\n",sum); return 0; }