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