c=0 for i in input(): i=int(i) if i!=0: c+=i else: c+=10 print(c)