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