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