N=list(map(int,list(input()))) s=0 for i in range(len(N)): if N[i]==0: s+=10 else: s+=N[i] print(s)