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