# coding: utf-8 # Your code here! n = list(map(int, input())) sum_n = 0 for num in n: if num == 0: sum_n += 10 else: sum_n += num print(sum_n)