s = list(map(int, input())) l = [10 if i == 0 else i for i in s] print(sum(l))