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