a=0 b=input() for i in b: if i=="0": a+=10 else: a+=int(i) print(a)