#include using namespace std; int main(){ string S; cin>>S; int ans=0; for(int i=0;i<9;i++){ if(S.at(i)=='0') ans+=10; ans+=(S.at(i)-'0'); } cout<