N = [int(i) for i in list(input())] M = [10 if i == 0 else i for i in N ] print(sum(M))