a=0 for i in input():a+=[10,int(i)][i!='0'] print(a)