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