import sys input=lambda: sys.stdin.readline().rstrip() ans=0 S=input() for s in S: s=int(s) if s==0: ans+=10 else: ans+=s print(ans)