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