s=input();a=0 for i in s: a+= 10 if i=='0' else int(i) print(a)