#include <stdio.h>
main()
{
 int t,a,b,c;
 scanf("%d\n",&t);
 a=/100;
 b=/10%10;
 c=%10;
 t=a+b+c;
 printf("%d"t);
 getchar();
}