x=input() z=0 for i in x: y=int(i) z=z+y if y==0: y=y+10 print(z)