#include #include int main(){ char number[1024]; scanf("%s",number); int i; int sum = 0; for(i=0;i { sum+=(number[i]-'0'); } printf("%d\n",sum); return 0;}