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