#include<iostream>#include<cstdio>usingnamespacestd;intmain(){intnum,a,b,c;cin>>num;a=num/100;b=num%100/10;c=num%10;a=a+b+c;cout<<a;return0;}
#include<iostream>#include<cstdio>usingnamespacestd;intmain(){intnum,a,b,c;cin>>num;a=num/100;b=num%100/10;c=num%10;a=a+b+c;cout<<a;return0;}