/* -*- coding: utf-8 -*- * * 656.cc: No.656 ゴルフ - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ const int N = 9; /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { string s; cin >> s; int sum = 0; for (int i = 0; i < N; i++) sum += (s[i] == '0') ? 10 : (s[i] - '0'); printf("%d\n", sum); return 0; }