# include<iostream> using namespace std; int main(){ int abc; cin>>abc; cout<<abc % 10 + abc / 10 % 10 + abc / 100 % 10; return 0; }