s = input() ans = 0 for c in s: ans += int(c) if c == '0': ans += 10 print(ans)