ans=0 for i in input(): t=int(i) if t==0: ans+=10 else: ans+=t print(ans)