s=input() tot=0 for c in s: if c=='0': tot+=10 else: tot+=ord(c)-48 print(tot)