#include using namespace std; int main(){ int s; cin >> s; int sum=0; while(s > 0){ if(s % 10 == 0) sum += 10; else sum += s % 10; s = s / 10; } cout << sum << endl; }