S=input() ANS=0 for s in S: if s=="0": ANS+=10 else: ANS+=int(s) print(ANS)